Page 1 of 1

Write an OR statement on condition

Posted: Tue Jun 11, 2024 4:35 pm
by hrohibil
Hi Toni

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

Thank you

Re: Write an OR statement on condition

Posted: Tue Jun 11, 2024 5:08 pm
by Tony Li

Code: Select all

(getCurrentCash() >= getFoodPrice()) or (getCurrentCash()) >= getMachineGunPrice())

Re: Write an OR statement on condition

Posted: Tue Jun 11, 2024 5:26 pm
by hrohibil
Thank you Toni!!!