MasterC Posted May 29, 2023 Posted May 29, 2023 hi guys, i need help i need make a command for more 2 option (or) example i tryed it, work only first state1 if state1 or state2 == off then gg.alert('error, activate state1 and state2 to continue') please help me how do
MAARS Posted May 29, 2023 Posted May 29, 2023 if (state1 == "off") or (state2 == "off") then gg.alert('error, activate state1 and state2 to continue') end You need to test on both side, and you can infinitely chain the "or" And one thing i wanted to point out is, why you want to use two different options to activate one thing ?, are there any benefit from this ?
MasterC Posted June 1, 2023 Author Posted June 1, 2023 On 5/29/2023 at 6:24 PM, MAARS said: if (state1 == "off") or (state2 == "off") then gg.alert('error, activate state1 and state2 to continue') end You need to test on both side, and you can infinitely chain the "or" And one thing i wanted to point out is, why you want to use two different options to activate one thing ?, are there any benefit from this ? i try other method and work here if (state1==off or (state2==off)) then thanks..
Question
MasterC
hi guys, i need help
i need make a command for more 2 option (or)
example
i tryed it, work only first state1
if state1 or state2 == off then
gg.alert('error, activate state1 and state2 to continue')
please help me how do
2 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.