From... to

i am trying to make one thing, but i need help.
the thing is it: there is a input that when the cube is in x>= 0 is true, and now ( my problem is in this passage) i want that when the input is true an other cube scale from 0 to o.4 , and when the input is false the cube scale from 0.4 to 0


switch(value) to switch between 2 settings depending on true or false.

thanks… no text …