- Joined
- Dec 15, 2013
- Messages
- 21
- Reaction score
- 2
- First Language
- English
- Primarily Uses
Hello,
Trying to script call a conditional branch, where the if statement is a switch status.It should check if Switch 1 is true and return either true or false text depending. But I must be doing something wrong because it always returns false (the latter option), whether or not the switch is on or off, and whether or not the condition is checking for true or false. Can anyone see a mistake?
if ($gameSwitches.setValue(1, true)){$gameMessage.add("True")} else {$gameMessage.add("False")}Thank You.
Trying to script call a conditional branch, where the if statement is a switch status.It should check if Switch 1 is true and return either true or false text depending. But I must be doing something wrong because it always returns false (the latter option), whether or not the switch is on or off, and whether or not the condition is checking for true or false. Can anyone see a mistake?
if ($gameSwitches.setValue(1, true)){$gameMessage.add("True")} else {$gameMessage.add("False")}Thank You.