SplitScript reference / Migration / Boolean conversion
Boolean conversion
Migration from C#
Source pattern
Look for the C# concept Boolean conversion in the source. The semantic difference below is more important than a token-for-token rewrite.
Canonical SplitScript
Use the canonical language and API symbols linked below.
Semantic difference
Use value != 0 for numbers, the value itself for bool, and explicit trimmed ASCII-insensitive true/false handling for strings.
Supported hosts
This uses the standard SplitScript runtime contract. Any provider-specific requirements are documented by the linked canonical API.
Related reference
-
if (language)
-
String.trimAsciiWhitespace (standard library)
-
String.equalsIgnoreAsciiCase (standard library)