-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
If I use Wild guess: The If that's the case the following template should work:
And the reason the And now I've just tested this and it's indeed the case. Now, I can't think of a case where I would want Should I file a bug for this? |
Beta Was this translation helpful? Give feedback.
If I use
(p "" str)
over(s str)
the template works fine.Wild guess: The
s
element will bindNAME
in(str NAME)
tonil
instead of""
when the field is empty. This means that(capitalize str)
in my template will error out before I get totype anything.
If that's the case the following template should work:
And the reason the
make-string
calls inexample2
works isbecause
nil
is the empty list so(length nil)
is 0 and nota failure.
And now I've just tested this and it's indeed the case.
Now, I can't think of a case where I would want
(s NAME)
tobind
NAME
tonil
over""
when the field is empty and it'sa source of confusion and b…