View Full Version : Quick Zscript question:
How do you say "does not equal" in Zscript code? For example [If,a not to equal 10,[dothis]]
I'm rapidly running down the last stretch before my silly little Zscript is done. It isn't even very interesting, but I've learned from it! :D
i dunno but ill take a guess that might Help.
the word TRUE mean equal or False Meaning not equal.
or 0 meaning not equal and 1 meaning equal...
just a guess LOL
[If,False=10,[dothis]]
[If,True=10,[dothis]]
[If,0=10,[dothis]]
[If,1=10,[dothis]]
lol just a guess
Well, I've been trying stuff, like == and /= and =/ and stuff like that, and I think it is <> that does it. That seems to work anyway. ;)
Pixolator
02-24-02, 01:52 PM
Hi :)
Here are few variations of “IF”…
If <font color=#FFffff>A</font> <font color=#FFa000>equal</font> <font color=#FFffff>B</font> is written as <font color=#FFa000>==</font>[/B] <font color=#FFffff>B</font> ,… [I]( ZBrush will accept [If, <font color=#FFffff>A</font> <font color=#FFa000>=</font> <font color=#FFffff>B</font> ,… but for future compatibility use <font color=#FFa000>==</font> and not <font color=#FFa000>=</font>) )
If <font color=#FFffff>A</font> <font color=#FFa000>not equal</font> <font color=#FFffff>B</font> is written as [If, <font color=#FFffff>A</font> <font color=#FFa000>!=</font> <font color=#FFffff>B</font> ,…
If <font color=#FFffff>A</font> <font color=#FFa000>smaller than</font> <font color=#FFffff>B</font> is written as [If, <font color=#FFffff>A</font> <font color=#FFa000><</font> <font color=#FFffff>B</font> ,…
If <font color=#FFffff>A</font> <font color=#FFa000>larger than</font> <font color=#FFffff>B</font> is written as [If, <font color=#FFffff>A</font> <font color=#FFa000>></font> <font color=#FFffff>B</font> ,…
If <font color=#FFffff>A</font> <font color=#FFa000> smaller or equal </font> <font color=#FFffff>B</font> is written as [If, <font color=#FFffff>A</font> <font color=#FFa000><=</font> <font color=#FFffff>B</font> ,…
If <font color=#FFffff>A</font> <font color=#FFa000> larger or equal </font> <font color=#FFffff>B</font> is written as [If, <font color=#FFffff>A</font> <font color=#FFa000>>=</font> <font color=#FFffff>B</font> ,…
-Pixolator
Powered by vBulletin® Version 4.1.11 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.