How to write jslt to achieve the effect of 【firstNotNull】 #289
-
for example,here my jslt input
so how to write jslt template to achieve the effect of 【firstNotNull】instead of using if objectA != null else if else if ..... This allows me to call like this
am i missing something? please give some help |
Beta Was this translation helpful? Give feedback.
Answered by
larsga
Mar 30, 2023
Replies: 1 comment 1 reply
-
The fallback function does exactly what you're asking for. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ChengHoHang
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The fallback function does exactly what you're asking for.