Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
type_system [2026/08/18 01:50] hermann old revision restored (2026/08/04 10:32) |
type_system [2026/08/18 01:58] (current) hermann |
||
|---|---|---|---|
| Line 40: | Line 40: | ||
| **Log Tag conversions.** [[log_tag_type|Log Tag Type]] converts to and from the same four numeric types by the level's position number in [[log_tag_type|Log Tag Type]]'s own table (e.g. Info is level 4, so Info ↔ 4 in either direction), and separately converts to String Type using the level's name rather than its number (Info → ''"Info"''). | **Log Tag conversions.** [[log_tag_type|Log Tag Type]] converts to and from the same four numeric types by the level's position number in [[log_tag_type|Log Tag Type]]'s own table (e.g. Info is level 4, so Info ↔ 4 in either direction), and separately converts to String Type using the level's name rather than its number (Info → ''"Info"''). | ||
| + | |||
| + | **Code conversions.** [[code_type|Code Type]] holds a script (for example, the Python expression in [[Calculate Python Expression]]), and its conversion to and from [[string_type|String Type]] carries that script's own text — neither direction involves base64. Converting Code Type to String Type produces the script's textual representation; converting String Type to Code Type takes the string's text directly as the script, with no base64 encoding required on either side. | ||
| ^ From ^ To ^ Notes ^ | ^ From ^ To ^ Notes ^ | ||
| Line 47: | Line 49: | ||
| | [[boolean_value_type|Boolean Value Type]] | [[real_value_type|Real Value Type]] | True → 1, False → 0 | | | [[boolean_value_type|Boolean Value Type]] | [[real_value_type|Real Value Type]] | True → 1, False → 0 | | ||
| | [[boolean_value_type|Boolean Value Type]] | [[string_type|String Type]] | True → ''"true"'', False → ''"false"'' | | | [[boolean_value_type|Boolean Value Type]] | [[string_type|String Type]] | True → ''"true"'', False → ''"false"'' | | ||
| - | | [[code_type|Code Type]] | [[string_type|String Type]] | The Code value is base64-encoded | | + | | [[code_type|Code Type]] | [[string_type|String Type]] | Produces the script's textual representation — not a base64 encoding | |
| | [[index_or_name_type|Index Or Name Type]] | [[integer_value_type|Integer Value Type]] | Can fail — only succeeds if the value holds an index rather than a name | | | [[index_or_name_type|Index Or Name Type]] | [[integer_value_type|Integer Value Type]] | Can fail — only succeeds if the value holds an index rather than a name | | ||
| | [[index_or_name_type|Index Or Name Type]] | [[name_type|Name Type]] | Can fail — only succeeds if the value holds a name rather than an index | | | [[index_or_name_type|Index Or Name Type]] | [[name_type|Name Type]] | Can fail — only succeeds if the value holds a name rather than an index | | ||
| Line 98: | Line 100: | ||
| | [[real_value_type|Real Value Type]] | [[string_type|String Type]] | — | | | [[real_value_type|Real Value Type]] | [[string_type|String Type]] | — | | ||
| | [[real_value_type|Real Value Type]] | [[date_type|Date Type]] | — | | | [[real_value_type|Real Value Type]] | [[date_type|Date Type]] | — | | ||
| - | | [[string_type|String Type]] | [[code_type|Code Type]] | Can fail — the string must be valid base64; most likely to fail if written or edited by hand rather than generated by the GUI | | + | | [[string_type|String Type]] | [[code_type|Code Type]] | Takes the string's text directly as the script — no base64 encoding required | |
| | [[string_type|String Type]] | [[date_type|Date Type]] | — | | | [[string_type|String Type]] | [[date_type|Date Type]] | — | | ||
| | [[string_type|String Type]] | [[index_or_name_type|Index Or Name Type]] | — | | | [[string_type|String Type]] | [[index_or_name_type|Index Or Name Type]] | — | | ||