Fork me on GitHub
#hyperfiddle
<
2024-01-12
>
Vincent10:01:42

Is there a way to conditionally evaluate an (e/server ..) block .. like if and only when the phone number input is 10 chars? otherwise don't evaluate that branch at all, not even a little bit, just assign this other value like "" until the phone input is ten chars long

henrik10:01:58

(e/client
  (if (= 10 (count phone-number))
    (e/server …)
    ""))