if (true)
console.log("hi!")
if True:
print("Hello world")
if true then
print("true")
end
if true do
IO.puts("Hello world")
end
if then else
- var user = {description: 'foo bar baz'}
- var authorised = false
#user
if user.description
h2.green Description
p.description= user.description
else if authorised
h2.blue Description
p.description.
User has no description,
why not add one...
else
h2.red Description
p.description User has no description
if 1
print["true"]
end
(if positive? 1 -1)
if BOOLEAN_EXPRESSION {
outln(""Condition is true)
}
if true
p A.
else
p B.
- if %products.Count% > 0 then
- go through %products% call !ProcessProduct
EITHER IF A > B$ FWD = 1$ OTHERWISE$ FWD = 0$
Languages with Conditionals include JavaScript, C, Python, Java, Perl, Ruby, PHP, Go, C#, R, PowerShell, Bash, Rust, Swift, Scala, Lua, Kotlin, Haskell, CoffeeScript, Elixir, Erlang, Objective-C, Julia, Dart, Solidity, Pascal, Ada, Crystal, Reason, Scheme, Chapel, Pug, Groovy, F#, OCaml, HCL, VHDL, F*, ABAP, Verilog, C3, Koka, Janet, Bicep, Opa, Lil, SystemVerilog, progsbase, C2, Twig, Slope, AutoIt, Clean, Felix, Dylan, Flow9, X10, Maxima, Veryl, ATS, Angelscript, Ligo, Apex, Jule, HOPE, Sophia, fp, JS++, Speedie, Aardvark, Slab, PowerQuery M, Q#, plang, nimrod, BALGOL
Languages without Conditionals include HTML, XML, JSON
View all concepts with or missing a hasConditionals measurement
Read more about Conditionals on the web: 1.