Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
if (条件) then Statement 1 , statement 2, ... else statement 1, statement 2,... ; を使用したい SML プログラミング言語で。と、単純なスペースまたは、を使用できませんでした。これが可能な場合、何か提案はありますか?注: if else がネストされているという意味ではありません。しかし、それはかなり明確です。
この構造を使用して、(expr1; expr2; ... ; exprn)複数の式を順番に実行できます。そう:
(expr1; expr2; ... ; exprn)
if condition then ( expression1; expression2 ) else ( expression1; expression2 )