#1
Newbie Question - How to get the returned result?!
I'm very new to JASS so go easy on me.I want to set a variable to the returned result.
function swap takes boolean a returns boolean
if a==true then
set a = false
else
set a = true
endif
return a
endfunctionI have a global boolean (booltest) and I want to set it to the local boolean "a".
How do I turn from simple words "set booltest to returned result of swap(booltest)" into JASS?