-
I'm finding that maybe I don't know how to return a boolean value (true or false) from a template. When I return true or false, and then evaluate the return value via the "kindOf" sprig function, I get "string" and not "boolean". Is there a way to return a boolean from a template? Or do I just need to test for "truthiness" via sprig's "empty" function, or some other method? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Additional info... A test template:
A call to execute-template:
|
Beta Was this translation helpful? Give feedback.
-
The result of executing a template is always a string. |
Beta Was this translation helpful? Give feedback.
The result of executing a template is always a string.