In the reference I can read the following example:
#False:
$if(0,True,False)
# False:
$if('0',True,False)
# True or False:
[$add(%rating%,1)]
I gather from this example that the value 0 is considered 'falsy'.
I try the following code, the purpose of which is to establish whether the source of the sound is a radio stream or a local file:
$puts(isHttp,$ifequal($strstr($lower(%_path_raw%),'http://'),1,1,0))
$puts(isHttps,$ifequal($strstr($lower(%_path_raw%),'https://'),1,1,0))
$puts(isRadioStream,$if($or($get(isHttp),$get(isHttps)),1,0))
isHttp = $get(isHttp)$crlf()
isHttps = $get(isHttps)$crlf()
isRadioStream = $get(isRadioStream)$crlf()
$crlf()$crlf()
$if($get(isRadioStream),RADIO STREAM,LOCAL FILE)

As you can see in the screenshot, the value of IsRadioStream is 1, but this is incorrect; it should be 0.
To get around the error I modify the code like this:
$puts(isHttp,$ifequal($strstr($lower(%_path_raw%),'http://'),1,1,0))
$puts(isHttps,$ifequal($strstr($lower(%_path_raw%),'https://'),1,1,0))
$puts(isRadioStream,$if($or($greater($get(isHttp),0),$greater($get(isHttps),0)),1,0))
isHttp = $get(isHttp)$crlf()
isHttps = $get(isHttps)$crlf()
isRadioStream = $get(isRadioStream)$crlf()
$crlf()$crlf()
$if($get(isRadioStream),RADIO STREAM,LOCAL FILE)

Now the value of isRadioStream is correct (0, "falsy", as we saw earlier), but the $if() instruction returns the wrong result (RADIO STREAM).
Am I doing something wrong or is there a problem with the title formatting engine?