-
Hi, is it possible to define local variables in ui scripts components/functions ? I mean something like this for example export component MySquare inherits Rectangle {
width: 100px;
height: 100px;
background: red;
in property<string> items: "abcd/efgh/ijkl/mnop";
public function get_items_arr() -> [string] {
let arr = [];
for elt in items {
if (elt != "/") arr.push(elt);
}
arr
}
} |
Beta Was this translation helpful? Give feedback.
Answered by
tronical
May 18, 2023
Replies: 1 comment
-
Unfortunately at the moment that's not possible. But this is a feature that makes sense to have in the future. I'll convert this to an issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
loloof64
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Unfortunately at the moment that's not possible. But this is a feature that makes sense to have in the future. I'll convert this to an issue.