🤑 Indie game store🙌 Free games😂 Fun games😨 Horror games
👷 Game development🎨 Assets📚 Comics
🎉 Sales🎁 Bundles

Bitsy Game Maker

Make little games, worlds, and stories! (No coding required.) · By Adam Le Doux

2 variables in one condition?

A topic by eminidhogg created Feb 08, 2018 Views: 129 Replies: 1
Viewing posts 1 to 2
(+1)

Hi,  is there anyway to combine 2 variables using and or && ?? . I tried this for example, and didn't work     - a == 1 && g >= 10 ?  

(+1)

Apparently you CAN do nested conditionals, which could get awkward if you want, say 3 variables. But it's better than nothing.

{
  - variable1 == 1 ?
    {
      - variable2 == 1 ?
        Variable1 AND Variable2 both equal 1!
      - else ?
        Variable1 equals 1 but Variable2 does not.
    }
  - else ?
    Variable1 does not equal 1!
}