I would like to conditionally change the textstyle of lines in a field based on whether a card exists in a substack
I've put together this code
Code: Select all
repeat for each line x in field 1
If exists(card x of stack"SubStack") then
set the textstyle ["underline"] of line x of field 1 to true
else
set the textstyle ["underline"] of line x of field 1 to false
end if
end repeat
Code: Select all
set the textstyle ["underline"] of line x field 1 to true
Many thanks,
Kind regards,
Glenn