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
Expressions can refine types, so any following Expressions will see the new type:
So if a type is an optional text, we can use var is defined and if that expression is true it can modify the var type from optional text to text.
The Or expression complicates this, it takes each type modification and converts modifications on the same var to Many.
For example if (x is Text or x is Boolean) { // x is Many<Text | Boolean> }.
Certain expressions have a condition (like If, or the IIF operation) so inside the "true" expression the types are modified.
The text was updated successfully, but these errors were encountered:
Expressions can refine types, so any following Expressions will see the new type:
So if a type is an optional text, we can use
var is defined
and if that expression is true it can modify thevar
type fromoptional text
totext
.The Or expression complicates this, it takes each type modification and converts modifications on the same
var
to Many.For example
if (x is Text or x is Boolean) { // x is Many<Text | Boolean> }
.Certain expressions have a condition (like If, or the IIF operation) so inside the "true" expression the types are modified.
The text was updated successfully, but these errors were encountered: