• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[JASS] Newbie Question - How to get the returned result?!

Status
Not open for further replies.
Level 2
Joined
Jan 30, 2005
Messages
12
I'm very new to JASS so go easy on me.
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
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?
 
Status
Not open for further replies.
Top