Folder visibility when uw is not NA

Questions about and code samples for adding visibility conditions within Select
Post Reply
lburkeckc
Posts: 6
Joined: Tue Apr 16, 2019 3:41 pm

Folder visibility when uw is not NA

Post by lburkeckc »

Visibility isn't working. I need this condition to show a folder only when NA is not the underwriter. If there are no Underwriters or if Underwriter is one other than NA, then the folder should not show. If the Underwriter is NA, then it should not show the folder.

if Order.Underwriters.Count == 0:
# No underwriters: hide folder
return False

if Order.Underwriters[0].LookupCode is None:
# First underwriter has no LookupCode: hide folder
return False

if Order.Underwriters[0].LookupCode is not "NA"
# First underwriter LookupCode is not NA: hide folder
return False

# Hide folder if LookupCode is "NA"
return Order.Underwriters[0].LookupCode != "NA"
lburkeckc
Posts: 6
Joined: Tue Apr 16, 2019 3:41 pm

Re: Folder visibility when uw is not NA

Post by lburkeckc »

Please cancel this request.
Post Reply