Perform loop processing with cobe block

I wrote “if senntence” in the code block, but it doesn’t work.
I’ve tried what I can try, so I’d be happy if you could give me a hint.
Thank you very much.

error : closeparen is required.

I don’t know Designscript that well, but it looks like you might have to use == as in if (T == List.Cycle....)

1 Like

That’s a good first place to start.

Curious to know what the end goal is here.

I did not notice at all!
It is no longer red.
thank you very much!

Thank you for your reply!

My ultimate goal is to have ans display a naihekilist when T == [0,0,0,0,0,0,0,0]. And if T! = [0,0,0,0,0,0,0,0], the answer is else condition. The reason is that if T is [0,0,0,0,0,0,0,0], all of ans will be an emptylist under the else condition, which will adversely affect the subsequent processes.
The else is working well and the if is not working.

Sorry for the poor explanation. Thank you.

1 Like

It may be misguided, but I thought it would be a problem if there were multiple answers to the conditional expression of if. So, the answer is one conditional expression, but it doesn’t work.