Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Show more expression functions examples
also fix typo
  • Loading branch information
DelazJ authored and github-actions[bot] committed Nov 4, 2021
1 parent 563ebfd commit 07dbfe3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions resources/function_help/json/array_find
Expand Up @@ -2,8 +2,9 @@
"name": "array_find",
"type": "function",
"groups": ["Arrays"],
"description": "Returns the index (0 for the first one) of a value within an array. Returns -1 if the value is not found.",
"description": "Returns the lowest index (0 for the first one) of a value within an array. Returns -1 if the value is not found.",
"arguments": [ {"arg":"array","description":"an array"},
{"arg":"value","description":"the value to search"}],
"examples": [ { "expression":"array_find(array(1,2,3),2)", "returns":"1"}]
"examples": [ { "expression":"array_find(array('a', 'b', 'c'), 'b')", "returns":"1"},
{ "expression":"array_find(array('a', 'b', 'c', 'b'), 'b')", "returns":"1"}]
}
2 changes: 1 addition & 1 deletion resources/function_help/json/color_cmyka
Expand Up @@ -8,5 +8,5 @@
{"arg":"yellow","description":"yellow component of the color, as a percentage integer value from 0 to 100"},
{"arg":"black","description":"black component of the color, as a percentage integer value from 0 to 100"},
{"arg":"alpha","description":"alpha component as an integer value from 0 (completely transparent) to 255 (opaque)."}],
"examples": [ { "expression":"color_cmyk(100,50,0,10,200)", "returns":"'0,115,230,200'"}]
"examples": [ { "expression":"color_cmyka(100,50,0,10,200)", "returns":"'0,115,230,200'"}]
}
3 changes: 2 additions & 1 deletion resources/function_help/json/round
Expand Up @@ -9,6 +9,7 @@
],
"examples": [
{ "expression":"round(1234.567, 2)", "returns":"1234.57"},
{ "expression":"round(1234.567)", "returns":"1235"}
{ "expression":"round(1234.567)", "returns":"1235"},
{ "expression":"round(1234.567, -1)", "returns":"1230"}
]
}

0 comments on commit 07dbfe3

Please sign in to comment.