I have been trying to get a few values switched over between fieldnames/legal names/data names and the decode function feels like the way to do it but it just doesn't work for me. I have seen people in other coding environments use a very different syntax or array based stuff that I don't know how to do in ArcGIS Online Popup window.
It is clearly not working the way I think it does as listed here (https://developers.arcgis.com/arcade/function-reference/logical_functions/#decode) because that above code looks like this and when I try to add a default value it just entirely breaks.