🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Generate a Function & apply it to all/some attributes automatically

User: "1705410G"
New Altair Community Member
Updated by Jocelyn
I've created a new attribute using the Generate Attribute operator. 
Attribute name N_speed, with 'N' representing the location. 
E.g. 2_speed represents speed at location 2. 

(New) Attribute Name:             2speed 
Function Expressions:             if([2_speed]>=70,"DANGER","SAFE").

However, I have nearly 300 attributes. I've tried adding new entries and replacing each with the name of the next attribute, but its just too much work. 

Hence, Is there any way to apply the same function to all attributes automatically? 

if([2_speed]>=70,"DANGER","SAFE")
if([3_speed]>=70,"DANGER","SAFE")
if([4_speed]>=70,"DANGER","SAFE")
if([5_speed]>=70,"DANGER","SAFE")
if([6_speed]>=70,"DANGER","SAFE")
if([7_speed]>=70,"DANGER","SAFE") and so on... 


Thanks.

Regards,
AY

Find more posts tagged with