AnsweredAssumed Answered

Using Arcade Expression to change font size based on if statment

Question asked by adlukas1 on Jul 18, 2019
Latest reply on Jul 22, 2019 by adlukas1

I will confess that the most arcade I have ever used has been extremely simple. I currently have written a VBScript in ArcMap that will increase the font size and make it bold based on an if statement. I have tried several attempts to replicate this in Arcade, with no success.

 

Function FindLabel ( [GIS_ID_coded], [Pole_Inspection_status] )
dim a

a= [GIS_ID_coded]

if [Pole_Inspection_status] = "No" then

a= "<BOL><FNT size = '12'>" & a & "</FNT></BOL>"
end if

FindLabel = a

 

I haven't waded through all the arcade function references but have not been able to find any documentation on how to change font size and bold option. If anyone could point me in the right direction it would greatly appreciated! 

Outcomes