Six Stars

What is the "not equal" operator for string?

Hi Talend Folks,

       

                      What is the "not equal" operator for string?

  • Big Data
  • Data Integration
  • ESB
  • Exchange components
  • Sandbox
  • SDI
  • Talend Integration Cloud
2 ACCEPTED SOLUTIONS

Accepted Solutions
Five Stars

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

Try this

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

Eleven Stars TRF
Eleven 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")

Five Stars

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

Try this

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

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