{ "signatures": [ { "name": "toBoolean(integer) boolean", "function_name": "toBoolean", "doc": "Converts argument value to boolean type. Returns true if argument is 1, false if argument is 0, error if argument is other.", "arguments": [ { "type": "integer", "doc": "Integer value to convert." } ], "result_type": "boolean", "platforms": ["android", "web", "ios"] }, { "name": "toBoolean(string) boolean", "function_name": "toBoolean", "doc": "Converts argument value to boolean type. Returns true if argument is \"true\", false if argument is \"false\", error if argument is other.", "arguments": [ { "type": "string", "doc": "String value to convert." } ], "result_type": "boolean", "platforms": ["android", "web", "ios"] }, { "name": "toInteger(boolean) integer", "function_name": "toInteger", "doc": "Converts argument value to integer type. Returns 1 if argument is true, 0 if argument is false.", "arguments": [ { "type": "boolean", "doc": "Boolean value to convert." } ], "result_type": "integer", "platforms": ["android", "web", "ios"] }, { "name": "toInteger(number) integer", "function_name": "toInteger", "doc": "Converts argument value to integer type. Rounds number value down. Returns integer value.", "arguments": [ { "type": "number", "doc": "Number value to convert." } ], "result_type": "integer", "platforms": ["android", "web", "ios"] }, { "name": "toInteger(string) integer", "function_name": "toInteger", "doc": "Converts argument value to integer type. Returns integer value.", "arguments": [ { "type": "string", "doc": "String value to convert." } ], "result_type": "integer", "platforms": ["android", "web", "ios"] }, { "name": "toNumber(integer) number", "function_name": "toNumber", "doc": "Converts argument value to number type. Returns number value.", "arguments": [ { "type": "integer", "doc": "Integer value to convert." } ], "result_type": "number", "platforms": ["android", "web", "ios"] }, { "name": "toNumber(string) number", "function_name": "toNumber", "doc": "Converts argument value to number type. Returns number value.", "arguments": [ { "type": "string", "doc": "String value to convert." } ], "result_type": "number", "platforms": ["android", "web", "ios"] }, { "name": "toString(boolean) string", "function_name": "toString", "doc": "Converts argument value to string type. Returns string value.", "arguments": [ { "type": "boolean", "doc": "Boolean value to convert." } ], "result_type": "string", "platforms": ["android", "web", "ios"] }, { "name": "toString(integer) string", "function_name": "toString", "doc": "Converts argument value to string type. Returns string value.", "arguments": [ { "type": "integer", "doc": "Integer value to convert." } ], "result_type": "string", "platforms": ["android", "web", "ios"] }, { "name": "toString(number) string", "function_name": "toString", "doc": "Converts argument value to string type. Returns string value.", "arguments": [ { "type": "number", "doc": "Number value to convert." } ], "result_type": "string", "platforms": ["android", "web", "ios"] }, { "name": "toString(color) string", "function_name": "toString", "doc": "Converts argument value to string type. Returns string value.", "arguments": [ { "type": "color", "doc": "Color value to convert." } ], "result_type": "string", "platforms": ["android", "ios", "web"] }, { "name": "toString(url) string", "function_name": "toString", "doc": "Converts argument value to string type. Returns string value.", "arguments": [ { "type": "url", "doc": "Url value to convert." } ], "result_type": "string", "platforms": ["ios", "web"] }, { "name": "getIntegerValue(string, integer) integer", "function_name": "getIntegerValue", "doc": "Returns the value of a variable by its name. If the variable doesn't exist or has incorrect type, the default value would be returned.", "arguments": [ { "type": "string", "doc": "Variable name." }, { "type": "integer", "doc": "Fallback value." } ], "result_type": "integer", "platforms": ["web"] }, { "name": "getNumberValue(string, number) number", "function_name": "getNumberValue", "doc": "Returns the value of a variable by its name. If the variable doesn't exist or has incorrect type, the default value would be returned.", "arguments": [ { "type": "string", "doc": "Variable name." }, { "type": "number", "doc": "Fallback value." } ], "result_type": "number", "platforms": ["web"] }, { "name": "getStringValue(string, string) string", "function_name": "getStringValue", "doc": "Returns the value of a variable by its name. If the variable doesn't exist or has incorrect type, the default value would be returned.", "arguments": [ { "type": "string", "doc": "Variable name." }, { "type": "string", "doc": "Fallback value." } ], "result_type": "string", "platforms": ["web"] }, { "name": "getUrlValue(string, url) url", "function_name": "getUrlValue", "doc": "Returns the value of a variable by its name. If the variable doesn't exist or has incorrect type, the default value would be returned.", "arguments": [ { "type": "string", "doc": "Variable name." }, { "type": "url", "doc": "Fallback value." } ], "result_type": "url", "platforms": ["web"] }, { "name": "getUrlValue(string, string) url", "function_name": "getUrlValue", "doc": "Returns the value of a variable by its name. If the variable doesn't exist or has incorrect type, the default value would be returned.", "arguments": [ { "type": "string", "doc": "Variable name." }, { "type": "string", "doc": "Fallback value." } ], "result_type": "url", "platforms": ["web"] }, { "name": "getColorValue(string, color) color", "function_name": "getColorValue", "doc": "Returns the value of a variable by its name. If the variable doesn't exist or has incorrect type, the default value would be returned.", "arguments": [ { "type": "string", "doc": "Variable name." }, { "type": "color", "doc": "Fallback value." } ], "result_type": "color", "platforms": ["web"] }, { "name": "getColorValue(string, string) color", "function_name": "getColorValue", "doc": "Returns the value of a variable by its name. If the variable doesn't exist or has incorrect type, the default value would be returned.", "arguments": [ { "type": "string", "doc": "Variable name." }, { "type": "string", "doc": "Fallback value." } ], "result_type": "color", "platforms": ["web"] }, { "name": "getBooleanValue(string, boolean) boolean", "function_name": "getBooleanValue", "doc": "Returns the value of a variable by its name. If the variable doesn't exist or has incorrect type, the default value would be returned.", "arguments": [ { "type": "string", "doc": "Variable name." }, { "type": "boolean", "doc": "Fallback value." } ], "result_type": "boolean", "platforms": ["web"] } ] }