Can I use ternary operators in Hollywood?
Posted: Sun Oct 13, 2024 11:11 pm
Hi everyone,
I'm trying to find out if Hollywood supports the use of ternary operators for conditional assignments. Specifically, I'm looking to use a syntax like this:
---
Local variable = condition ? value1 : value2
---
If Hollywood doesn’t support this syntax, are there any recommended alternatives for conditional assignments in a single line?
Thank you for your help!
bySpawnPPC
I'm trying to find out if Hollywood supports the use of ternary operators for conditional assignments. Specifically, I'm looking to use a syntax like this:
---
Local variable = condition ? value1 : value2
---
If Hollywood doesn’t support this syntax, are there any recommended alternatives for conditional assignments in a single line?
Thank you for your help!
bySpawnPPC