FirstClassトップページ


 ヘルプの目次
このヘルプについて このヘルプについて
 
エンドユーザ向けヘルプ エンドユーザ向けヘルプ
Client Help クライアントヘルプ
Web Help Webアクセスヘルプ
ScreenReader Help スクリーンリーダ
Form フォーム
Synchronization 同期
Definitions 用語
container コンテナ
 
管理者向けヘルプ 管理者向けヘルプ
Administration サーバの管理
Internet Services インターネットサービス
Customization Tools カスタマイズツール(英語)
Administering OTSW OTSWの管理
OTSW Custodian OTSW Custodian
Using FirstClass ED FirstClass ED(英語)
 
バナー:
 
 IIf
 
Purpose
"Immediate if" valuates the expression and returns one of two possible values.
IIf can only be used to return either of two values rather than directing programmatic flow. The return type of IIf is the same as that of the value that is returned.
Syntax
IIf (ConditionalExpression, TrueVal, FalseVal)
The TrueVal and FalseVal arguments can be of any type. These arguments do not need to be the same data type.
Example
Sub Main()
        Dim i As Integer
        For i = 1 to 10
                Print "the value of i is";
IIf(i<=5, "less than or equals", "greater than"); "5"
        Next i
End Sub

 

Copyright(C) 2002-2011 FC Management Co. All Rights Reserved