<?php include "../src/helpers.php"; $s = ""; $result = StringToBool($s); var_dump($result);
/** * (macro) IfAppVar * If condition to check for an app stack variable. * * @param name The name of the variable * @param is Check against */ function IfAppVar($name, $is = null) { // get var $d = StringToBool(AppVar($name, false)); // check return $d && $d == $is; }