🎉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

If then statement

User: "diellasingh"
New Altair Community Member
Updated by Jocelyn

Hello,

I am trying to write an "if then" statement to generate an attribute. I would like to replace the ".0" in the attribute "partNOconcat" with "" (Nothing).

 

For example: partNOconcat : AA10000.0AA

i would like to replace it to give me in my new attribute the following; newGenAtt: AA10000AA

 

I currently have the following as my expresion:

 

if(partNOConcat contains(partNoConcat,".0"),replace(partNoConcat,".0",""))

 

This gives me the following error: "Syntax Error (implicit mulitplication not enabled)"

 

Please could someone provide me with some guidence to where I am going wrong.

 

Thank you,

 

Diella

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "diellasingh"
    New Altair Community Member
    OP
    Accepted Answer

     

    Hi Thomas,

     

    Thank you for your fast response time. I didn’t know that was possible to autopopulate a process from XML.

     

    About the syntax provided. I am not retrieving the desired output. I’m struggle to construct the third argument. Whereby I would like the value of the generated attribute (dot_zero) to have the attribute value of the [temp] for that particulate example if ".0" is not found within the [temp] attribute value.

     

    Syntax: if(contains(".0",partNoConcat),replace(".0",partNoConcat,""),partNoConcat)

     

    Please could you tell if this is even possible with the If function expression in RM.

    Thanks,

    Diella