Seven Stars RAJ
Seven Stars

What is the "not equal" operator for string?

Hi Talend Folks,

       

                      What is the "not equal" operator for string?

Thanks
RAJ
2 ACCEPTED SOLUTIONS

Accepted Solutions
Six Stars

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

Try this

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

Forteen Stars TRF
Forteen 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
Seven Stars RAJ
Seven Stars

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

 

!row1.example.equals("ok")

Thanks
RAJ
Six Stars

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

Try this

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

Forteen Stars TRF
Forteen 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