0

Sahi スクリプトの if-else-if ステートメントの構文は何ですか? 以下は構文エラーで失敗しました:

function caseSwitch($htype){
    if($htype==22){
        type22();
    }
    else{
       if($htype==5){
            type5();
        }  //I have tried adding a semicolon here and it still fails
    }
    else
    {
        _log("Whoops, Hierarchy Type " + $htype + " has not been automated yet");
    }
}
4

1 に答える 1