Six Stars

What is the "not equal" operator for string?

Hi Talend Folks,

       

                      What is the "not equal" operator for string?

2 ACCEPTED SOLUTIONS

Accepted Solutions
Six Stars

Re: What is the "not equal" operator for string?

Try this

!"Row1".equals("<value>")

Twelve Stars TRF
Twelve Stars

Re: What is the "not equal" operator for string?

In case of, the following is much more secured:
row1.example != null && !row1.example.equals("ok")

TRF
3 REPLIES
Six Stars

Re: What is the "not equal" operator for string?

 

!row1.example.equals("ok")

Six Stars

Re: What is the "not equal" operator for string?

Try this

!"Row1".equals("<value>")

Twelve Stars TRF
Twelve Stars

Re: What is the "not equal" operator for string?

In case of, the following is much more secured:
row1.example != null && !row1.example.equals("ok")

TRF