Skip to content

Commit

Permalink
Swap display_expression parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
DelazJ committed Jul 12, 2020
1 parent 2e2acf9 commit 9cf31e9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions resources/function_help/json/display_expression
Expand Up @@ -4,18 +4,18 @@
"groups": ["Record and Attributes"],
"description": "Returns the display expression for a given feature in a layer. If called with no parameters, it evaluates the current feature. The expression is evaluated by default.",
"arguments": [
{
"arg": "feature",
"optional": true,
"default": "current feature",
"description": "The feature which should be evaluated."
},
{
"arg": "layer",
"optional": true,
"default": "current layer",
"description": "The layer (or its id or name)."
},
{
"arg": "feature",
"optional": true,
"default": "current feature",
"description": "The feature which should be evaluated."
},
{
"arg": "evaluate",
"description": "If the expression must be evaluated. If false, the expression will be returned as a string literal only (which could potentially be later evaluated using the 'eval' function).",
Expand All @@ -29,7 +29,7 @@
"returns": "The display expression of the current feature."
},
{
"expression": "display_expression(get_feature_by_id('streets', 1), 'streets')",
"expression": "display_expression('streets', get_feature_by_id('streets', 1))",
"returns": "The display expression of the feature with the ID 1 on the layer 'streets'."
},
{
Expand Down

0 comments on commit 9cf31e9

Please sign in to comment.