Friday, 2024-05-03, 12:39 PM
Main Sign Up RSS
Welcome, Guest
[ New messages · Members · Forum rules · Search · RSS ]
  • Page 1 of 1
  • 1
Forum moderator: SeaAngel  
Forum » Warcraft III » Request a Resource » Using "And" Conditions
Using "And" Conditions
SeaAngelDate: Wednesday, 2011-12-07, 2:17 PM | Message # 1
3D Modeling
Group: Administrators
Messages: 972
Awards: 1
Reputation: 42
Status: Offline
Question: This is probably the most noobish-question I've ever asked, but if you put a bunch of conditions on the conditions part of a trigger, without putting them in an "And - Multiple Functions" function, do all conditions still need to be true in order for the trigger to continue?

Answer:Convert an example trigger to JASS and perform a manual follow through of the script it produces. All will be revealed then.

If I recall placing multiple conditions in a condition block defaults to the same behaviour as logical and. The reason for the and block is for nested logic such as and components making up an or block.

Ultimatly it is far easier to use JASS for such logic as there you can just declare a comparator between 2 booleans.
 
Forum » Warcraft III » Request a Resource » Using "And" Conditions
  • Page 1 of 1
  • 1
Search: