Author Topic: Or for conditionals  (Read 1366 times)

CGM

  • Christian, 3D artist, former Platform Builder gamdev
  • Master Builder
  • *
  • Posts: 3836
    • View Profile
Or for conditionals
« on: May 31, 2019, 01:16:23 AM »
What about an or command for conditionals? Like, if key=right or key=up or key=...You get the idea.

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
Re: Or for conditionals
« Reply #1 on: May 31, 2019, 06:17:35 AM »
What about an or command for conditionals? Like, if key=right or key=up or key=...You get the idea.
This can be done, just put:
Code: [Select]
if key =  right | key = up
Sorry because my English is not very good because I'm Spanish ;) :P

CGM

  • Christian, 3D artist, former Platform Builder gamdev
  • Master Builder
  • *
  • Posts: 3836
    • View Profile
Re: Or for conditionals
« Reply #2 on: May 31, 2019, 04:11:30 PM »
Thanks for the info Antikore! Wish I had known that... Must have overlooked it.