Questions on optional schema parameter #444
mihaigalos
announced in
Announcements
Replies: 2 comments 3 replies
-
@mihaigalos. Hello, thank you for your question. In KCL, if expressions will filter all expressions that are not true (False, empty string, empty list, etc.), just like Python and Javascript. Ref KCL FAQ: https://kcl-lang.io/docs/user_docs/support/faq-kcl#11-how-to-judge-whether-a-variable-is-noneundefined-and-whether-a-stringdictlist-is-empty |
Beta Was this translation helpful? Give feedback.
3 replies
-
I will transfer it to discussion |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Bug Report
1. Minimal reproduce step (Required)
Tried to run the example from the docs.
Ran with
kcl person.k
.2. What did you expect to see? (Required)
Error, since middle name is empty.
3. What did you see instead (Required)
4. What is your KusionStack components version? (Required)
I don't have the folder required for this step on my machine (
Kusion/kclvm-go/KCLVM
), since built the binaries from source (commit 82c2be0 from March 8th).Playground link.
Beta Was this translation helpful? Give feedback.
All reactions