Hi, I am struggling with Arcade Expressions! I have a web map in agol that I am trying to customize the popup. I want to display different text based on the project status.
So if the Current Phase = Construction,
I want to display a sentence like "Project started in the {PROJ_BEGIN} of {BEGIN_YEAR} and is expected to be completed in the {PROJ_END} of {END_YEAR} "
my attribute expression
var status = $feature.CURR_PHASE;
var phrase = When (status == 'Construction', "construction sentence here", status == 'Design', "design sentence here", status == 'Completed', "completed sentence here", "N/A")
return phrase;
My popup is only displays N/A, it's not reading the value, obviously I am missing something??

Any suggests would be greatly appreciated!