Page 1 of 1

I always get an error when doing this exercise

Posted: Mon Aug 10, 2026 9:39 am
by niedian
good afternoon
I am doing this exercise:Exercise - Create an LED Component
What's the reason
thank you

Re: I always get an error when doing this exercise

Posted: Mon Aug 10, 2026 9:50 am
by LeighM
You must include the quotes e.g. "color"

Re: I always get an error when doing this exercise

Posted: Mon Aug 10, 2026 10:10 am
by Steve-Matrix
And the Value property should also be a string - i.e. "0". Note that some versions of Flowcode automatically convert a number to a string in this case.

Re: I always get an error when doing this exercise

Posted: Mon Aug 10, 2026 11:18 am
by niedian
Still not working.

Re: I always get an error when doing this exercise

Posted: Mon Aug 10, 2026 11:20 am
by Steve-Matrix
See Leigh's comment. The "color" also needs to be in quotes.

Re: I always get an error when doing this exercise

Posted: Mon Aug 10, 2026 11:23 am
by niedian
Okay.
Thank you so much.

Re: I always get an error when doing this exercise

Posted: Mon Aug 10, 2026 5:15 pm
by WingNut
I think they mean any string needs to be in quotes

Re: I always get an error when doing this exercise

Posted: Mon Aug 10, 2026 5:33 pm
by Steve-Matrix
WingNut wrote:
Mon Aug 10, 2026 5:15 pm
I think they mean any string needs to be in quotes

Yes, unless it's the name of a string variable.