Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

= or ==


3 replies to this topic

sod

sod
  • Full Members
  • 11 posts

Posted 09 February 2006 - 01:00

If (a = TRUE) then
<...>
endif;

Is it equivalent to

if (a== TRUE) then
<...>
endif;

It does not fail the compiling but Help never mention == as the operator.



Taco Bell

Taco Bell

    IS6 Expert

  • Moderators
  • 1,281 posts

Posted 09 February 2006 - 01:04

IS only use the single form of equals and figures out the meaning based on the context.
user posted image

sod

sod
  • Full Members
  • 11 posts

Posted 09 February 2006 - 01:12

I found some code that uses ==, would it cause unexpected result?


Taco Bell

Taco Bell

    IS6 Expert

  • Moderators
  • 1,281 posts

Posted 09 February 2006 - 14:20

I can't say, but I don't recommend it, so you're better off replacing such code just in case.
user posted image