Script Conditional Question

Post » Sat Nov 06, 2010 8:53 pm

I can't believe this self-taught dummy's never had to use this before now... and even more embarrassed that I don't know and couldn't find it.
How do I specify an OR conditional?

if (VarA == 4) OR (VarA == 6)
do stuff
endif

Thanks
User avatar
Natalie Harvey
 
Posts: 3433
Joined: Fri Aug 18, 2006 12:15 pm

Post » Sat Nov 06, 2010 7:33 pm

The logical OR operator in Fallout 3 scripts looks like this:
||
You should be able to type that character via shift+\. For example:
if (VarA == 4) || (VarA == 6)

Cipscis
User avatar
Dustin Brown
 
Posts: 3307
Joined: Sun Sep 30, 2007 6:55 am

Post » Sat Nov 06, 2010 5:23 pm

Ahh, the double pipe.. Thanks!!
User avatar
Steve Bates
 
Posts: 3447
Joined: Sun Aug 26, 2007 2:51 pm


Return to Fallout 3