• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[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