Write an OR statement on condition

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
hrohibil
Posts: 369
Joined: Thu Nov 04, 2021 12:50 pm

Write an OR statement on condition

Post by hrohibil »

Hi Toni

Can we write or use an OR statement in conditions?
Any examples?

Thank you
User avatar
Tony Li
Posts: 22108
Joined: Thu Jul 18, 2013 1:27 pm

Re: Write an OR statement on condition

Post by Tony Li »

Code: Select all

(getCurrentCash() >= getFoodPrice()) or (getCurrentCash()) >= getMachineGunPrice())
hrohibil
Posts: 369
Joined: Thu Nov 04, 2021 12:50 pm

Re: Write an OR statement on condition

Post by hrohibil »

Thank you Toni!!!
Post Reply