Project

General

Profile

$true » History » Version 1

Per Amundsen, 06/28/2014 06:05 PM

1 1 Per Amundsen
_Added in 1.8.10_
2
3
*$true*
4
5
Returns $true, mainly used for if/while expressions.
6
7
*Example*
8
9
<pre>
10
if ($true) {
11
  echo -ag expression was true
12
}
13
14
if (!$true) {
15
  echo -ag expression was false
16
}
17
18
if ($false) {
19
  echo -ag expression was false
20
}
21
22
if (!$false) {
23
  echo -ag expression was true
24
}
25
</pre>