Content deleted Content added
m →Lua: why is the section param disabled in this template? |
|||
Line 970:
* [[Pascal (programming language)|Pascal]] although [[Object Pascal|Object Pascal / Delphi]] do have a function {{code|IfThen}} to do the same (with caveats)
* [[Rust (programming language)|Rust]] The {{code|if..else}} construct is an expression and can be used to get the same functionality.<ref>{{cite web |url= http://doc.rust-lang.org/reference.html#if-expressions |work= The Rust Reference |title= If expressions |access-date= 2015-07-21}}</ref>
* Scala
* {{ill|XProfan|de|XProfan}}
* [[PowerShell]] (in old versions) an elegant workaround is to use <code>(''<value for true>'',''<value for false>'')[!(''<condition>'')]</code><ref>{{Cite web|url=https://stackoverflow.com/questions/31341998/ternary-operator-in-powershell|title=Ternary operator in PowerShell|website=Stack Overflow|access-date=2018-10-09}}</ref>
|