Setting up if-then in javascript

Posted in Javascript
August 26th, 2009

Variable
if comparison
what to do if it IS true
what to do otherwise, if it IS NOT true.

if (comparison)
{what to do if comparison is ture }
else {what to do if comparison is false }