Hi there,
I am trying to use an IIF calculation to determine whether a switch should be selected to 'yes' or 'no' based on a field in the parent data.
When I use the following calculation:
Features = FeatureSetByRelationshipName($feature, 'WCC_Hort_Site_Auditing_XV2X_inspection_audit');
the result is

However, when I try to input this into an IIF statement:
iif(FeatureSetByRelationshipName($feature, 'WCC_Hort_Site_Auditing_XV2X_inspection_audit',['bedding'])=='yes','yes','no')
it returns "no"
I imagine it is something to do with the return being a featureSet rather than a straight yes/no
Can anyone help me with this calculation?
Thank you