View Full Version : how do I script this?
rusted_nut 08-02-2003, 12:06 AM I'm trying to figure out how to write the following into a MEL script: if $test is greater than 90, but less than 100, do this...
I thought I could write it like this:
if ($test > 90 || < 100)
or like this
if ($test > 90 && < 100)
Can anyone show me the correct syntax, thanks.
|
|
sedric
08-02-2003, 08:41 AM
hey RUSTY!! i think you need to do it like this
if ($test < 100 || $test > 90) do all kinds of stuff;
hope that helped...............
sedric
ACtually it should be:
if($test < 100 && $test > 90)
{
// do stuff
}
Otherwise $test will always pass your if statement because you saying "If it's less than 100 OR if it's getter than 90", well pretty much any number will pass that!
--g
CGTalk Moderation
01-15-2006, 07:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.