Expression mapping task

  • 26Views
  • Last Post 26 March 2020
0
votes
Aman Gupta posted this 26 March 2020

I need to perform this below mentioned task in skyvia please help me with write code-

if(abc == "")

{

b == "M2M";

}

else if(abc != null)

{

b == abc;

}

 

Thanks in advance

0
votes
Dmitriy Muzurov posted this 26 March 2020

Hello Aman,

Thank you for submitting a ticket with us.

Provided "abc" is a name of the column, "b" is the mapped field and the conditions are "equal blank" and "not equal blank", here the expression:

[abc] == "" ? "M2M" : [abc]

If "abc" is equal to blank, the value "M2M" is pasted to "b". If not, the value of "abc" is pasted to "b".

We are looking forward to hearing from you, should you have any questions.

Close