"%" Translation

Im trying to convert a flash binary-decimal converter to another programming language (TI-Basic). I’ve got all of it down except one key part. I’ve got a solid backing of actionscript understanding but find myself unable to understand the following statement:
[color=#006610]if[/color] color=#0000ff[/color] [color=#0000ff]{[/color] [color=#000050]bin[/color] [color=#0000ff]=[/color] [color=#666666]“1”[/color][color=#0000ff]+[/color][color=#000050]bin[/color]; [color=#0000ff]}[/color]
[color=black]from this tutorial[/color]
I realize that inumber%2 will return a value being the remainder of inumber divided by 2, but how can this be a conditional? “if (2) { }” doesn’t work for conditonals im used to. Can someone fill me in on how this works?
Or if your a TI-Basic wiz and could point me a different direction for this program I’d appreciate it :smiley: .

Thanks

[size=1]p.s. how do you wrap actionscript tags around content in a post on the forum?[/size]