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

0

这是一个语法问题。Sahi 论坛在这里提供了解决方案:

http://sahi.co.in/forums/discussion/comment/16735#Comment_16735

于 2013-04-19T18:25:15.483 回答