「if 条件分岐」-サンプルページ-
function hoge(){ j=10; if (j < 10) { document.write("一桁ですね!"); }else { document.write("二桁ですね!"); } }