Author Topic: Allow to use ! on values  (Read 698 times)

Antikore

  • Developing Mortal Theater at day, developing depression at night.
  • Level 22: Trex
  • *
  • Posts: 2020
  • Enjoying Platform Builder from the very start
    • View Profile
    • PBuilder Resources
Allow to use ! on values
« on: December 20, 2020, 11:45:37 AM »
Actually when we want to switch a boolean variable, we do like this
Code: [Select]
if avariable = true
avariable = false
else
avariable = true
Why we just don't use this?
Code: [Select]
avariable = !avariable
Sorry because my English is not very good because I'm Spanish ;) :P