From wiki.ginstr.com
Jump to: navigation, search
(Example)
m (formatting)
 
Line 10: Line 10:
 
===Check is the middle row===
 
===Check is the middle row===
  
;<code>[gn:act_isMiddleRow]|[target,index]</code>
+
:;<code>[gn:act_isMiddleRow]|[target,index]</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
 
|-
 
|-
| [[target]]
+
| <code>[[target]]</code>
 
| [[target]] where the list is stored
 
| [[target]] where the list is stored
 
* Valid [[target|targets]]:
 
* Valid [[target|targets]]:
** [[GnDropDown]]
+
** <code>[[GnDropDown]]</code>
** [[Datatypes#rows|rows]]
+
** <code>[[Datatypes#rows|rows]]</code>
** [[Datatypes#rowsColumn|rowsColumn]]
+
** <code>[[Datatypes#rowsColumn|rowsColumn]]</code>
 
|-
 
|-
| index
+
| <code>index</code>
 
| [[source]] from where the row index value is used
 
| [[source]] from where the row index value is used
 
* Valid [[source|sources]]:
 
* Valid [[source|sources]]:
Line 32: Line 32:
  
 
====Example====
 
====Example====
<code>@variable/meters</code> - list<br>
+
:<code>@variable/meters</code> - list<br>
<code>@variable/meterIndex</code> - row index<br><br>
+
:<code>@variable/meterIndex</code> - row index<br>
<code>[gn:act_isMiddleRow]|[@variable/meters,@variable/meterIndex]</code>
+
:; ⤷ <code>[gn:act_isMiddleRow]|[@variable/meters,@variable/meterIndex]</code>
 
<hr>
 
<hr>

Latest revision as of 19:37, 12 July 2017

gn:act_isMiddleRow

Description
Action used to check if specific row is not the first or the last row in the list
Action returns
boolean

Action signatures

Check is the middle row

[gn:act_isMiddleRow]|[target,index]
Parameter Description
target target where the list is stored
index source from where the row index value is used

Example

@variable/meters - list
@variable/meterIndex - row index
[gn:act_isMiddleRow]|[@variable/meters,@variable/meterIndex]