Skip to content
Permalink
Browse files
Show more expression functions examples
also fix typo
  • Loading branch information
DelazJ authored and nyalldawson committed Nov 5, 2021
1 parent 26651fe commit 6750b31831b4f65ec8fe846aeef6c459dd10a494
Showing with 6 additions and 4 deletions.
  1. +3 −2 resources/function_help/json/array_find
  2. +1 −1 resources/function_help/json/color_cmyka
  3. +2 −1 resources/function_help/json/round
@@ -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"}]
}
@@ -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'"}]
}
@@ -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 6750b31

Please sign in to comment.