What is the "not equal" operator for string?

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

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

All 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