Have greater than helper very close to correct. Just need to make it compare arrays of scalars.
This commit is contained in:
@@ -17,3 +17,18 @@ greater than or equals to
|
||||
All comparisons between non-matching types (for example, int vs string) appear to render the main block.
|
||||
|
||||
Comparisons between non-scalar types (like arrays) appears to render the main block
|
||||
|
||||
less than
|
||||
---------
|
||||
|
||||
All comparisons between non-matching types (for example, int vs string) appear to render the else block.
|
||||
|
||||
Comparisons between non-scalar types (like arrays) appears to render the else block
|
||||
|
||||
|
||||
less than or equal to
|
||||
---------------------
|
||||
|
||||
All comparisons between non-matching types (for example, int vs string) appear to render the main block.
|
||||
|
||||
Comparisons between non-scalar types (like arrays) appears to render the main block
|
||||
|
||||
@@ -20,7 +20,10 @@ beta is {beta}{~n}
|
||||
{@gt key="a" value="]"}"a" is greater than "]"{:else}"a" is less than or equal to "]"{/gt}{~n}
|
||||
{@gt key="a" value="A"}"a" is greater than "A"{:else}"a" is less than or equal to "A"{/gt}{~n}
|
||||
{@gt key="a" value="}"}"a" is greater than "}"{:else}"a" is less than or equal to "}"{/gt}{~n}
|
||||
{!
|
||||
Commented out because unicode not working in rust implementation yet
|
||||
{@gt key="☃" value="☄"}"☃" is greater than "☄"{:else}"☃" is less than or equal to "☄"{/gt}{~n}
|
||||
!}
|
||||
{@gt key=true_value value=false_value}true is greater than false{:else}true is less than or equal to false{/gt}{~n}
|
||||
{@gt key=array_lower value=array_higher}[3,5,7] is greater than [8,9]{:else}[3,5,7] is less than or equal to [8,9]{/gt}{~n}
|
||||
{@gt key=array_higher value=array_lower}[8,9] is greater than [3,5,7]{:else}[8,9] is less than or equal to [3,5,7]{/gt}{~n}
|
||||
|
||||
Reference in New Issue
Block a user