Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Army Builder Forums > Army Builder
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
DarkHost
Member
 
Join Date: Mar 2006
Posts: 39

Old August 18th, 2006, 05:51 AM
Is there AND and OR logical operators that can be used in scripts?
DarkHost is offline   #1 Reply With Quote
rob
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 8,232

Old August 19th, 2006, 11:25 PM
There are no boolean operators built into the scripting language. HOWEVER, you can achieve the same net effect very easily in 90% of the situations you'll run into. The trick is to use arithmetic operations instead. For details, see the topic "Script-Writing 101" in the "How To" chapter of the docs. There is a sub-topic entitled "Handling Boolean Logic Conditions". Give it a read and then let me know if you still have questions. If you've got a specific situation you're trying to solve that doesn't seem to fit the arithmetic solution, I'll see what I can come up with for you.

-Rob

At 06:51 AM 8/18/2006, you wrote:

Quote:
Is there AND and OR logical operators that can be used in scripts?
rob is offline   #2 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 03:49 AM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.