{"renderer":{"type":"uniqueValue","valueExpression":"// Write a script that returns a value that will be used to draw features.\n// For example, find the percentage of males:\n// Round(($feature.MalePop / $feature.TotalPop) * 100, 2)\n\n/* First code \nvar boilAdvisory = $feature.ADVISEEND;\nif (boilAdvisory >= NOW() ){\n return \"Advisory Alert\";\n}\nelse \n{\n return \"No Alert\";\n}*/\n\n//This is second code\n\nvar started = $feature.ADVISESTART\nvar closed = $feature.ADVISEEND\nvar present = Now()\n\n\n// if current date/time is greater than or equal to the start time\n// AND current date/time is less than or equal to the close time \n// return open, otherwise its closed\nIf (present >= started && present <= closed) {\n return \"Open\"\n} else {\n return \"Closed\"\n}\n","valueExpressionTitle":"Custom","defaultSymbol":null,"uniqueValueInfos":[{"value":"Open","symbol":{"color":[255,127,127,255],"outline":{"color":[115,0,0,255],"width":7.5,"type":"esriSLS","style":"esriSLSSolid"},"type":"esriSFS","style":"esriSFSSolid"},"label":"Active Alert"}]},"transparency":20}
HasZ: false
HasM: false
Has Attachments: true
Has Geometry Properties: true
HTML Popup Type: esriServerHTMLPopupTypeAsHTMLText