You're viewing a single thread.
All comments
117
comments
Wat.
18 0 Reply11 0 ReplyAh, I understand now. The expression is evaluated like this:
$a == 1 ? "one" : $a == 2 ? "two" : $a == 3 ? "three" : "other"
$a == 2 ? "two" : $a == 3 ? "three" : "other"
"two" ? "three" : "other"
"three"
17 0 Reply@AlmightySnoo @dot20 hooooo 🤯!! Thank you for the solution! 🤓
2 0 Reply
If you think PHP is weird, go look up ZZT-OOP, the scripting language from Tim Sweeney's first game.
(No, a scripting language for game characters doesn't need integers. If you need to count, you can do that by moving blocks around on the game board.)
9 0 ReplyI would expect this from Javascript :S
1 0 ReplyZZT came out in 1991. JavaScript didn't exist for at least four years after that.
2 0 Reply
117
comments
Scroll to top