Select to view content in your preferred language

Arcade expression for selecting attributes that include the same text?

601
2
Jump to solution
02-26-2024 11:17 AM
hannahisreeding
Emerging Contributor

Screenshot 2024-02-26 132535.png

Is there any way to select attributes that include "1x1.25", even if something else comes after that in the attribute?  I just put the "Includes" there to illustrate what I'm attempting to do, but it does not work. 

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
KenBuja
MVP Esteemed Contributor

You can use the Left function

if (Left($feature.ConduitSize, 6) == '1x1.25') return $feature.ClengthFt

 

 

View solution in original post

2 Replies
KenBuja
MVP Esteemed Contributor

You can use the Left function

if (Left($feature.ConduitSize, 6) == '1x1.25') return $feature.ClengthFt

 

 

JoshuaBixby
MVP Esteemed Contributor

Try:

if (Find("1x1.25", Lower($feature.ConduitSize)) > -1){ return $feature.ClengthFt}