There's nothing in the SDK that I'm aware of, but I use a simple immediate if function for this kind of thing...
Function IIf( Condition As Boolean, Result1 As Dynamic, Result2 As Dynamic ) As Dynamic
If Condition Then
Return Result1
Else
Return Result2
End If
End Function
Used like...
?IIf( True, 1, 0 )
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)