アプリの設計時に特定の式を定義したり、個々の演算を含めたりできるようにするため、すぐに使える関数のセットをデザイナー内に用意しています。
注:
関数の仕様によっては、グラフィック表示があるものとないものがあります。
関数の使用を開始するには、必要な演算子を選択し、パラメーターを入力して、出力値が返されるのを待ちます。
注:
- 許容されるパラメーターは、同じ型の引数または引数の暗黙的キャストのいずれかです。
- 出力値はプリミティブまたはオブジェクトのいずれかです。
関数演算子
数学演算子と関数
Please access this page for more details.
算術演算子
Operator | Description | Example |
---|---|---|
+ | Addition | x = y + 2 |
- | Subtraction | x = y - 2 |
* | Multiplication | x = y * 2 |
/ | Division | x = y / 2 |
% | Modulus (division remainder) | x = y % 2 |
++ | Increment | x = ++y |
-- | Decrement | x = --y x = y-- |
文字列演算子
テキスト 1 = "Good "、テキスト 2 = "Morning"、およびテキスト 3 = "" と仮定して、文字列演算子の働きを示します。
Operator | Example | text1 | text2 | text3 |
---|---|---|---|---|
+= | text1 += text2 | "Good Morning" | "Morning" | "" |
& | text3 = text1 + text2 | "Good " | "Morning" | "Good Morning" |
比較演算子
x = 5
と仮定して、比較演算子の働きを示します。
Operator | Description | Comparing | Returns |
---|---|---|---|
= , == | equal to ("=" is the same as "==") | x == 8 x == 5 | false true |
> | greater than | x > 8 | false |
>= | greater than or equal to | x >= 8 | false |
!= | not equal | x != 8 | true |
< | less than | x < 8 | true |
<= | less than or equal to | x <= 8 | true |
論理演算子
x=6
および y=3
と仮定して、論理演算子の働きを示します。
Operator | Function | Description | Example |
---|---|---|---|
! , not , NOT | Not() | not | !(x === y) is true |
&& , and , AND | And() | and | (x < 10 && y > 1) is true |
|| , or , OR | Or() | or | (x === 5 || y === 5) is false |
その他の演算子
in
演算子は、指定したプロパティが指定したオブジェクト内にある場合に true を結果として返します。それ以外の場合には、false を返します。
注:
in
演算子は、string
、number
、boolean
、null
などのプリミティブなデータ型のみをサポートします。
in
演算子は、choice-set
を使用する Data Service シナリオではサポートされません。代わりにcontains
演算子を使用できますが、1 つの入力に対してのみ使用できます。
8 か月前に更新