Value.Is
Nustato, ar reikšmė suderinama su nurodytu tipu.
Syntax
Value.Is(
value as any,
type as type
) as logical
Remarks
Nustato, ar reikšmė suderinama su nurodytu tipu. Tai atitinka operatorių „is“ M, išskyrus tai, kad jis gali priimti identifikatoriaus tipo nuorodas, pvz., Number.Type.
Examples
Example #1
Palyginkite du būdus, leidžiančius nustatyti, ar skaičius yra suderinamas su tipo numeriu.
Value.Is(123, Number.Type) = (123 is number)
Result:
true
Category
Values.Types