You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public foreign handler MCTypeEvalBoolFormattedAsString(in Target as bool, out Value as string) as undefined binds to "<builtin>"
5
-
public foreign handler MCTypeEvalStringParsedAsBool(in Target as string, out Value as bool) as undefined binds to "<builtin>"
6
-
7
-
public foreign handler MCTypeEvalNumberFormattedAsString(in Target as number, out Value as string) as undefined binds to "<builtin>"
8
-
public foreign handler MCTypeEvalStringParsedAsReal(in Target as string, out Value as number) as undefined binds to "<builtin>"
9
-
public foreign handler MCTypeEvalStringParsedAsInt(in Target as string, out Value as number) as undefined binds to "<builtin>"
10
-
*/
11
3
public foreign handler MCTypeEvalIsEmpty(in Target as any, out Value as bool) as undefined binds to "<builtin>"
12
4
public foreign handler MCTypeEvalIsNotEmpty(in Target as any, out Value as bool) as undefined binds to "<builtin>"
13
-
public foreign handler MCTypeEvalIsDefined(in Target as any, out Value as bool) as undefined binds to "<builtin>"
14
-
public foreign handler MCTypeEvalIsNotDefined(in Target as any, out Value as bool) as undefined binds to "<builtin>"
15
-
16
-
--
17
-
18
-
/*
19
-
Summary: Converts <Target> to a string.
20
-
Target: An expression that evaluates to a bool, real, or integer.
21
-
output: The converted value if there is a valid conversion from the type of <Target> to a string.
22
-
Bools, ints and reals always have valid conversions to strings.
23
-
24
-
Example: put true as string into tVar // tVar contains the string "true"
25
-
*/
26
-
27
-
/*
28
-
syntax AsString is postfix operator with precedence 1
29
-
<Target: Expression> "formatted" "as" "string"
30
-
begin
31
-
EvalBoolAsString(Target, output)
32
-
EvalIntAsString(Target, output)
33
-
EvalRealAsString(Target, output)
34
-
end syntax
35
-
*/
36
-
37
-
/*
38
-
Summary: Converts <Target> to a real.
39
-
40
-
Target: An expression that evaluates to an integer, or a string.
41
-
output: The converted value if there is a valid conversion from the type of <Target> to a real.
42
-
An int always has a valid conversion to a real.
43
-
A string has a valid conversions to a real if it consists of digits, and optionally a leading minus sign, a decimal point, and an "E" or "e" for exponential notation.
44
-
45
-
Example: put "8.0" as real into tVar // tVar contains the real number 8.0
46
-
*/
47
-
/*
48
-
syntax AsReal is postfix operator with precedence 1
49
-
<Target: Expression> "as" "real"
50
-
begin
51
-
EvalIntAsReal(Target, output)
52
-
EvalStringAsReal(Target, output)
53
-
end syntax
54
-
*/
55
-
/*
56
-
Summary: Converts <Target> to an integer.
57
-
58
-
Target: An expression that evaluates to a string.
59
-
output: The converted value if there is a valid conversion the string <Target> to an int.
60
-
A string has a valid conversion to an int if it consists of digits, and optionally a leading minus sign, and if the resulting integer is within the valid range for a 32-bit integer.
61
-
Example: put "8" as integer into tVar // tVar contains the integer 8
62
-
*/
63
-
/*
64
-
syntax AsInt is postfix operator with precedence 1
65
-
<Target: Expression> "as" "int"
66
-
begin
67
-
EvalStringAsInt(Target, output)
68
-
end syntax
69
-
*/
70
-
71
-
/*
72
-
Summary: Converts <Target> to a bool, if there is a valid conversion.
73
-
Target: An expression that evaluates to a string.
74
-
output: The converted value if there is a valid conversion the string <Target> to an bool.
75
-
A string has a valid conversion to a bool if it evaluates to the string "true" or the string "false"
76
-
77
-
Example: put "true" as bool into tVar // tVar contains the boolean value true
78
-
*/
79
-
/*
80
-
syntax AsBool is postfix operator with precedence 1
81
-
<Target: Expression> "as" "bool"
82
-
begin
83
-
EvalStringAsBool(Target, output)
84
-
end syntax
85
-
*/
86
-
--
5
+
public foreign handler MCTypeEvalIsDefined(in Target as optional any, out Value as bool) as undefined binds to "<builtin>"
6
+
public foreign handler MCTypeEvalIsNotDefined(in Target as optional any, out Value as bool) as undefined binds to "<builtin>"
87
7
88
8
/*
89
9
Summary: Determines whether <Target> is empty or not.
@@ -92,27 +12,27 @@ Target: Any expression
92
12
output: Returns true if the given expression <Target> evaluates to the empty value of that type, and false otherwise.
93
13
94
14
*/
95
-
/*
15
+
96
16
syntax IsEmpty is postfix operator with precedence 1
97
17
<Target: Expression> "is" "empty"
98
18
begin
99
19
MCTypeEvalIsEmpty(Target, output)
100
20
end syntax
101
-
*/
21
+
102
22
/*
103
23
Summary: Determines whether <Target> is empty or not.
104
24
105
25
Target: Any expression
106
26
output: Returns false if the given expression <Target> evaluates to the empty value of that type, and true otherwise.
107
27
108
28
*/
109
-
/*
29
+
110
30
syntax IsNotEmpty is postfix operator with precedence 1
111
31
<Target: Expression> "is not" "empty"
112
32
begin
113
33
MCTypeEvalIsNotEmpty(Target, output)
114
34
end syntax
115
-
*/
35
+
116
36
--
117
37
118
38
/*
@@ -122,27 +42,27 @@ Target: Any expression
122
42
output: Returns true if the given expression <Target> is defined, and false if not.
123
43
124
44
*/
125
-
/*
45
+
126
46
syntax IsDefined is postfix operator with precedence 1
127
47
<Target: Expression> "is" "defined"
128
48
begin
129
49
MCTypeEvalIsDefined(Target, output)
130
50
end syntax
131
-
*/
51
+
132
52
/*
133
53
Summary: Determines whether <Target> is defined or not.
134
54
135
55
Target: Any expression
136
56
output: Returns false if the given expression <Target> is defined, and true if not.
137
57
138
58
*/
139
-
/*
59
+
140
60
syntax IsNotDefined is postfix operator with precedence 1
0 commit comments