Comp - Basicsoftのうぃき
p(UserName, "Akiti") = 0 ThenPrint "You Can Enter"ElsePrint "Sorry, You Cannot Enter"Endif'これは例示的な例です。'
p(UserName, "Akiti") = 0 ThenPrint "You Can Enter"ElsePrint "Sorry, You Cannot Enter"Endif'これは例示的な例です。'
WeekDay("6/8/2008") = 0 ThenPrint "It is a Sunday"ElsePrint "It is not a Sunday"Endi Run Play
If / Then ( ステートメント )INPUT “MARKS”, M IF M<75 THEN PRINT “ADMIT” END IFFormatif boolean_expression then statement
e 3 c = c + 1 Case 4 d = d + 1 Case 5 e = e + 1 Case 6 f = f + 1 Case ElsePrint "This is impossible!" End SelectNextPrint a, b, c,
t "The number " & N & " is divisible by 5"ElsePrint "The number " & N & " is not divisibl
・Begin Case / Case / End Case (Statement)Formatbegin casecase ブール式statement(s)case boolean_expressionstatement(s)elsestatement(s)end case説明C
Confirm (Function)Formatconfirm ( prompt )confirm ( prompt, boolean_expression)returns boolean_expression説明この関数は、「はい」および「いいえ」ボタンのあるメッセージボックス
20B = 20 > 30If A And B ThenPrint "Both A and B are TRUE"ElsePrint "Either A or B or both are FALSE"Endif Ru