Boolean values: Difference between revisions

m (→‎{{header|Phix}}: subtly reduced the implication of either defending Phix or accusing JavaScript (or vice versa).)
Line 2,004:
Everything else is true. The keyword <tt>TRUE</tt> exists.
[http://www.php.net/manual/en/language.types.boolean.php#language.types.boolean.casting]
 
=={{header|Picat}}==
Picat has the built-in <code>true/0</code> for true (it always succeeds) and <code>false/0</code> (or <code>fail/0</code>) for false. <code>false/0</code> (/<code>fail/0</code>) can be used to generate other solutions through backtracking.
 
<lang Picat>go ?=>
member(N,1..5),
println(N),
fail, % or false/0 to get other solutions
nl.
go => true.</lang>
 
{{out}}
<pre>1
2
3
4
5</pre>
 
In the Picat shell, truth is represented as "yes" and false as "no".
<pre>Picat> 2==2
 
yes
 
Picat> 2==3
 
no</pre>
 
 
=={{header|PicoLisp}}==
495

edits