Type Casting Functions

Chris B

New Member
Reaction score
7
Hey, type casting in JASS seems easy when called via functions, if it's not one of the few supported through premade functions, such as I2S. I've been wondering though if there's a function available premade for converting an integer to a boolean. If not, I'll just create a function, it just seems unnecessary if it already exists.

-Chris
 

Chris B

New Member
Reaction score
7
Alright thanks AceHart, that's all I knew about and wasn't sure if there was an alternative. It's close enough, Blizzard put that functionality there for a reason :) The only thing is, can't converting ints to bools like that cause unkown results sometimes (at least in other languages), or is it a safe bet with JASS that you'll get what you asked for?

-Chris
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top