I'm very new to JASS so go easy on me.
I want to set a variable to the returned result.
I 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?
I want to set a variable to the returned result.
JASS:
function swap takes boolean a returns boolean
if a==true then
set a = false
else
set a = true
endif
return a
endfunction
How do I turn from simple words "set booltest to returned result of swap(booltest)" into JASS?