Difference between revisions of "If"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
 
(24 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Draft}}
+
{{lowercase}}
 
[[wikipedia:Conditional (computer programming)]]
 
[[wikipedia:Conditional (computer programming)]]
  
 +
* [[Bash]]: https://stackoverflow.com/questions/18668556/comparing-numbers-in-bash
 +
if (( a > b )); then
 +
    ...
 +
fi
 +
 +
if (( a > b )); then
 +
    ...
 +
else
 +
    ...
 +
fi
 +
 +
Bash:
 +
if..[[elif]]..else
 +
 +
 +
== Activities ==
 +
* Read http://www.rosettacode.org/wiki/Conditional_structures#UNIX_Shell
 +
 +
== Related terms ==
 +
* <code>[[man test]]</code>
 +
* <code>[[when: (ansible)]]</code>
 +
* <code>[[if __name__ == "__main__":]]</code>
 +
* <code>[[-z]]</code>
 +
* <code>[[==]]</code>
 +
* [[Terraform conditional expressions]]
 +
* [[if:]]
  
 
== See also ==
 
== See also ==
 +
* {{flow control}}
 +
* {{if}}
 
* {{programming}}
 
* {{programming}}
 
+
* {{languages}}
  
 
[[Category:Programming]]
 
[[Category:Programming]]

Latest revision as of 11:42, 26 May 2023

Advertising: