Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

[Resolved] if not

Status
Not open for further replies.
I wonder if there's something like the command in the title, since having conditionals in my scripts that are empty and only the else cases being used kinda suck...

Nevermind, I guess on my search for a fitting example, I found the syntax... if everyone could confirm that...

Code:
if !(condition)
  # execute
end
 
Well, I experienced that in some situations, unless doesn't fit my needs ... unfortunately, I can't find the specific code right now, but I'll put in in here later...


EDIT 2: Okay, it worked ... strange, I thought I tried it before ... thanks though, resolved.
 
Status
Not open for further replies.

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top