2.5 Operators
Idoc Script supports several operators.
Section 2.5.1, "Comparison Operators"
Section 2.5.2, "Special String Operators"
Section 2.5.3, "Numeric Operators"
Section 2.5.4, "Boolean Operators"
2.5.1 Comparison Operators
Use the following comparison operators compare the value of two operands and return a true or false value based on the result of the comparison. These operators can be used to compare integers and Boolean values in Idoc Script.
If you are using Idoc Script in an HCSP or HCSF page, you must use special comparison operators. For more information, see Oracle WebCenter Content Developer's Guide for Content Server.
Operator | Description | Example |
---|---|---|
== | equality | <$if 2 == 3$> evaluates to false |
!= | inequality | <$if 2 != 3$> evaluates to true |
< | less than | <$if 2 < 2$> evaluates to false |
<= | less than or equal | <$if 2 <= 2$> evaluates to true |
> | greater than | <$if 3 > 2$> evaluates to true |
>= | greater than or equal | <$if 3 >= 2$> evaluates to true |
These are numeric operators that are useful with strings only in special cases where the string data has some valid numeric meaning, such as dates (which convert to milliseconds when used with the standard comparison operators).
For string concatenation, string inclusion, and simple string comparison, use the Special String Operators.
To perform advanced string operations, use strEquals, strReplace, or other string-related global functions.
2.5.2 Special String Operators
Use the following special string operators to concatenate and compare strings:
For example, to determine whether the variable a has the prefix car or contains the substring truck, this expression could be used:
<$if a like "car*|*truck*"$>
Important:
To perform advanced string operations, use strEquals, strReplace, or other string-related global functions. For a list, see "Strings".
The like operator recognizes the following wildcard symbols:
2.5.3 Numeric Operators
Use the following numeric operators to perform arithmetic operations. These operators are for use on integers evaluating to integers or on floats evaluating to floats.
2.5.4 Boolean Operators
Use the following Boolean operators to perform logical evaluations.
Boolean operators evaluate from left to right. If the value of the first operand is sufficient to determine the result of the operation, the second operand is not evaluated.
TÜL PERDE MODELLERİ
ReplyDeletesms onay
mobil ödeme bozdurma
nft nasıl alınır
ankara evden eve nakliyat
trafik sigortası
dedektör
Kurma website
aşk kitapları
Smm Panel
ReplyDeletesmm panel
iş ilanları
İnstagram takipçi satın al
HİRDAVATCİ
Beyazesyateknikservisi.com.tr
servis
tiktok jeton hilesi indir
üsküdar arçelik klima servisi
ReplyDeletependik mitsubishi klima servisi
tuzla vestel klima servisi
tuzla bosch klima servisi
tuzla arçelik klima servisi
çekmeköy samsung klima servisi
çekmeköy mitsubishi klima servisi
ataşehir mitsubishi klima servisi
maltepe vestel klima servisi