Skip to content
Discussion options

You must be logged in to vote

Hi @Gianluks90! The following should work

- if (category == "X") {
+imageFill(image1)
- } else {
+imageFill(image2)
- }

Note that arbitrary JavaScript code can be put on any line that starts with a -

Hope this helps!

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@PathHound
Comment options

@sffc
Comment options

sffc Jan 27, 2026
Maintainer

Answer selected by Gianluks90
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants