Programming The Lego Mindstorms T-Rex from EV3 Laboratory
According the book the last input of the MyBlock is a Logic input, instead of a Number (default setting). 

Make sure you changed it to Logic and try it again.