Tag Archives: ternary

The Ternary Operator, Revisited

Earlier I vented a certain frustration with the usual verbose syntax for a simple conditional assignment in LSL. Let me review the options from that post using a more general pseudo-code, yet still syntactically–though not semantically–correct in LSL. For the type name, I will use the word “whatever”: [lsl] whatever result; if (some_logical_condition_is_TRUE) result = […]

A Vote For the Ternary Operator

On occasion I plan to discuss aspects of LSL language design, even though the practice may recognizably be futile. Creating a better language has already been demonstrated not to be on Linden Lab’s priority list. Yes, occasionally they’ll add a new function or two or three, and they’ll deprecate or remove outdated functions, but the […]