if (true)
console.log("hi!")
if True:
print("Hello world")
if true do
IO.puts("Hello world")
end
- 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 positive? 1 -1)
if BOOLEAN_EXPRESSION {
outln(""Condition is true)
}
EITHER IF A > B$ FWD = 1$ OTHERWISE$ FWD = 0$
Languages with Conditionals include JavaScript, Python, C, Java, Perl, Ruby, PHP, Go, C#, R, Bash, PowerShell, Swift, Rust, Scala, Lua, Haskell, Kotlin, Elixir, CoffeeScript, Objective-C, Julia, Erlang, Dart, Solidity, Pascal, Ada, Crystal, Reason, Scheme, Groovy, OCaml, F#, Chapel, Pug, VHDL, HCL, F*, ABAP, Verilog, Koka, Opa, C3, Bicep, janet, SystemVerilog, progsbase, Slope, AutoIt, C2, Twig, Clean, Felix, Dylan, Flow9, Maxima, ATS, X10, Angelscript, Ligo, Apex, Jule, HOPE, Sophia, JS++, Speedie, fp, Aardvark, PowerQuery M, Q#, nimrod, BALGOL
Languages without Conditionals include HTML, JSON, XML
View all concepts with or missing a hasConditionals measurement
Read more about Conditionals on the web: 1.