Function java_is_true
Checks whether a value is not NULL, 0, "" or false.
Note that if you want to check if a value is boolean true, use the following test:
java_values($value)===true
Example:
java_is_true(new java.lang.String("12")) => true
Example:
java_is_true(new java.lang.String("")) => false
Example:
java_is_true(1==1) => true
Example:
java_is_true(java("java.lang.System")->getProperty("foo"))
mixed |
$value |
Java object or a PHP value |
true
|
if the PHP or Java value is true. |