変数による条件分岐も仮に作ってみた #variable cmp,[比較の種類],[変数名],[数値],[条件を満たしたときのジャンプ先ラベル名] 比較の種類は gt ge lt le eq ne の6種 意味はそれぞれ次の通り gt : greater than ge : greater than or equal lt : less than le : less than or equal eq : equal ne : not equal
if param(0)="#variable" and param(1)="cmp" { var_name=param(3) value=int(param(4)) label=str(param(5)) switch param(2) case "gt" if variable_get(var_name)>value : jumptolabel label swbreak case "ge" if variable_get(var_name)>=value : jumptolabel label swbreak case "lt" if variable_get(var_name)<value : jumptolabel label swbreak case "le" if variable_get(var_name)<=value : jumptolabel label swbreak case "eq" if variable_get(var_name)=value : jumptolabel label swbreak case "ne" if variable_get(var_name)!value : jumptolabel label swbreak swend }