Conditional Visibility and Arcade expressions

2021
2
Jump to solution
02-18-2021 12:41 AM
LouiseHarris1
New Contributor III

Hi,

I am new to Field maps and Arcade expressions and am having issues trying to create an expression that will show a question or set or questions based on the answer to a previous question. So if they answer poor to the condition of the asset I want them to see the question that asks if it requires an urgent repair. I used the following expression but instead of showing the question about urgent repairs it didn't show it. It seems to work the opposite to expressions in Survey123 Connect.

$feature.Condition != "poor"

Can somebody let me know what expression I need to use.

Also is there any documentation that explains how to put arcade expressions together and what different expressions do/mean?

Thanks

Louise

0 Kudos
1 Solution

Accepted Solutions
Ewout_de_Graaff
New Contributor III

Hi LouseHarris1,

The != means in Arcade IS NOT. So in your case you have to use == for IS in SQL terms.

Here you will find further documentation and how-to's:

https://developers.arcgis.com/arcade/

GIS specialist bij Terra Nostra

View solution in original post

2 Replies
Ewout_de_Graaff
New Contributor III

Hi LouseHarris1,

The != means in Arcade IS NOT. So in your case you have to use == for IS in SQL terms.

Here you will find further documentation and how-to's:

https://developers.arcgis.com/arcade/

GIS specialist bij Terra Nostra
LouiseHarris1
New Contributor III

Thanks, that has worked.