m (formatting) |
|||
Line 10: | Line 10: | ||
===Compare lists=== | ===Compare lists=== | ||
− | ;<code>[gn:act_getListDifferences]|[source1,source2,target]</code> | + | :;<code>[gn:act_getListDifferences]|[source1,source2,target]</code> |
− | {| class="wikitable sortable" style="font-size: 85%; text-align: left;" | + | :{| class="wikitable sortable" style="font-size: 85%; text-align: left;" |
|- | |- | ||
! scope="col" | Parameter | ! scope="col" | Parameter | ||
! scope="col" | Description | ! scope="col" | Description | ||
|- | |- | ||
− | | [[source]]1 | + | | <code>[[source]]1</code> |
| [[source]] from where content for comparsion is used | | [[source]] from where content for comparsion is used | ||
* Valid [[source|sources]]: | * Valid [[source|sources]]: | ||
** [[:Category:Variables|variable]] | ** [[:Category:Variables|variable]] | ||
− | *** [[Datatypes#rows|rows]] | + | *** <code>[[Datatypes#rows|rows]]</code> |
|- | |- | ||
− | | [[source]]2 | + | | <code>[[source]]2</code> |
| [[source]] from where content for comparsion is used | | [[source]] from where content for comparsion is used | ||
** [[:Category:Variables|variable]] | ** [[:Category:Variables|variable]] | ||
− | *** [[Datatypes#rows|rows]] | + | *** <code>[[Datatypes#rows|rows]]</code> |
|- | |- | ||
− | | [[target]] | + | | <code>[[target]]</code> |
| [[target]] where [[Datatypes#rows|rows]] (which do not exist in both sources) will be stored | | [[target]] where [[Datatypes#rows|rows]] (which do not exist in both sources) will be stored | ||
** [[:Category:Variables|variable]] | ** [[:Category:Variables|variable]] | ||
− | *** [[Datatypes#rows|rows]] | + | *** <code>[[Datatypes#rows|rows]]</code> |
|- | |- | ||
|} | |} | ||
====Example==== | ====Example==== | ||
− | <code>@variable/allowedBeacons</code> - source 1<br> | + | :<code>@variable/allowedBeacons</code> - source 1<br> |
− | <code>@variable/oldAllowedBeacons</code> - source 2<br> | + | :<code>@variable/oldAllowedBeacons</code> - source 2<br> |
− | <code>@variable/beaconsFound</code> - target | + | :<code>@variable/beaconsFound</code> - target<br> |
− | <code>[gn:act_getListDifferences]|[@variable/allowedBeacons,@variable/oldAllowedBeacons,@variable/beaconsFound] | + | :; ⤷ <code>[gn:act_getListDifferences]|[@variable/allowedBeacons, @variable/oldAllowedBeacons, @variable/beaconsFound]</code> |
<hr> | <hr> |
Latest revision as of 19:48, 12 July 2017
gn:act_getListDifferences
- Description
- Action used to compare two rows and store differences in another row
- Action returns
- void
Action signatures
Compare lists
[gn:act_getListDifferences]|[source1,source2,target]
Parameter Description source1
source from where content for comparsion is used source2
source from where content for comparsion is used target
target where rows (which do not exist in both sources) will be stored
Example
@variable/allowedBeacons
- source 1@variable/oldAllowedBeacons
- source 2@variable/beaconsFound
- target
- ⤷
[gn:act_getListDifferences]|[@variable/allowedBeacons, @variable/oldAllowedBeacons, @variable/beaconsFound]
- ⤷