-
-
Notifications
You must be signed in to change notification settings - Fork 19
OSL ‐ Data Types
DanimalsTCGYT edited this page Aug 4, 2024
·
3 revisions
OSL supports the following data types:
-
String:
- Defined by enclosing text in double quotation marks (
"
). - Example:
"Hello"
- Defined by enclosing text in double quotation marks (
-
Boolean:
- Represented as
True
orFalse
(case-insensitive). - No need for double quotation marks.
- Example:
True
- Represented as
-
Number:
- Represented as numeric values that may include decimal points and negative signs.
- No need for double quotation marks.
- Must match the regex pattern
[0-9.\-]+
. - Example:
-1.75
-
JSON Array:
- Defined by enclosing a comma-separated list of values within square brackets (
[]
). - Example:
["Hi", "how", "are", "you"]
- Defined by enclosing a comma-separated list of values within square brackets (
-
JSON Object:
- Defined by enclosing key-value pairs within curly braces (
{}
). - Example:
{"hello": ["how", "are", "you"]}
- Defined by enclosing key-value pairs within curly braces (
-
null:
- Defined by being an empty variable
- Example:
These data types allow OSL scripts to work with various kinds of data, from simple strings and numbers to more complex data structures like JSON arrays and objects. This flexibility enables OSL scripts to handle a wide range of tasks and data manipulation.
originOS is a web desktop gui with a self contained file system, programming languages, internet system and a whole lot of stuff an os should be able to do Use originOS here