Page 1 of 1

A by statement in an If statement

PostPosted: Wed Sep 23, 2009 4:37 am
by niffirg1
Is there a by statement or something? Like
Code: Select all
{scene.my.var >= scene.my.var1 (by 10)} ? {then} : {else}

Is there something like that, I mean like a code that can tell me by ten within the if statement

Re: A by statement in an If statement

PostPosted: Wed Sep 23, 2009 4:47 am
by Versieon
Don't think so, you will just have to use a incusive range.

{(y <= (scene.my.my1 + 10)) && (y >= (scene.my.my1 - 10)}

Is this what your asking?

Re: A by statement in an If statement

PostPosted: Wed Sep 23, 2009 4:53 am
by niffirg1
Sort of.... But not really. But thanks though

Re: A by statement in an If statement

PostPosted: Wed Sep 23, 2009 5:10 am
by standardtoaster
What language are you getting this "by" statement from? If I knew what language you were trying to base this off of then I could help you a bit more.

Re: A by statement in an If statement

PostPosted: Thu Sep 24, 2009 12:06 am
by niffirg1
Nevermind. I dont need it any more