Talk:If

Revision as of 14:27, 14 April 2006 by imported>JOG (→‎tabs and spaces)

Do brackets help in logical operations?

IE: elseif Random > 75 && ( LilRandom == 4 || LilRandom2 == 4 )

That should be if Random is over 75, and LilRandom or LilRandom2 equals 4, but what I gather is that Oblivion will interpret it as:

if Random is over 75 and LilRandom is equal to 4, OR LilRandom equals 4.

Logically it should interpret it the prior, but with Oblivion, I'm not so sure. --MaXiMiUS 21:42, 9 April 2006 (EDT)


--JOG 15:21, 14 April 2006 (EDT)Doesn't help as far as I've tested it.

tabs and spaces

I just spent an hour searching for a bug in a script using &&:

Apparently certain combination of tabs and spaces between the two parameters cause the IF-Block to break processing of the script. No commands within the IF-Block or after the IF-Block are executed.

In my tests I had one tabs before the && and 3 tabs after with some spaces inbetween. When I use either tabs or spaces there's no problem.

--JOG 15:27, 14 April 2006 (EDT)

Return to "If" page.