Getting the left and right sides.
This commit is contained in:
5
js/test_cases/helpers_eq/README.md
Normal file
5
js/test_cases/helpers_eq/README.md
Normal file
@@ -0,0 +1,5 @@
|
||||
Without a key parameter, neither the main block nor the else block is rendered.
|
||||
|
||||
Without a value parameter, it probably uses "null" but I haven't yet confirmed that with additional testing. Potentially could also just be making all falsey values equal.
|
||||
|
||||
Literal values work in both keys and values.
|
||||
@@ -8,3 +8,8 @@ beta is {beta}{~n}
|
||||
{@eq key=int value="7"}int is equal to "7"{:else}int does not equal "7"{/eq}{~n}
|
||||
{@eq key=int value=7}int is equal to 7{:else}int does not equal 7{/eq}{~n}
|
||||
{@eq key=alpha value=beta}alpha is equal to beta{:else}alpha does not equal beta{/eq}{~n}
|
||||
{@eq value=beta}missing key is true{:else}missing key is false{/eq}{~n}
|
||||
{@eq value=gamma}missing key and non-existent value is true{:else}missing key and non-existent value is false{/eq}{~n}
|
||||
{@eq key=alpha}missing value is true{:else}missing value is false{/eq}{~n}
|
||||
{@eq key=gamma}missing value and non-existent key is true{:else}missing value and non-existent key is false{/eq}{~n}
|
||||
{@eq key="master" value="master"}"master" is equal to "master"{:else}"master" does not equal "master"{/eq}{~n}
|
||||
|
||||
Reference in New Issue
Block a user