Writing Conditional Cases on Code Block

Hello everyone,

I have this piece of graph where it either reports the value of local file or the value of bim 360 file. Both values cannot be string - one has to be the empty list.

My code block works with two values of string but when one of the value is ‘Empty List’ - it just grabs the empty list as shown in the image below.

Is there a way where the code block can also accept the ‘Empty List’? or should I turn that Empty List value into string? or something else?

Thank you!

@mrkpkimEMSRM You can put it this way:
image

image

1 Like

On a second thought you can just merge the values and clean the list

2 Likes

Thank you! @AmolShah
the first suggestion works better for me but i really appreciate it!

1 Like