-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday, November 19, 2002, Britt Malka wrote...

MD>> You can try with
MD>> %IF:"%QINCLUDE='IsBat'"<>"Bat!":"%comment='_Try The Bat!'":""%-

> The phrase is:
> %IF:"condition"='something':'then-this':'orelsethis'

Yes, you are correct here.

> Marc Pearlstone wrote:
> %IF:"%QINCLUDE='IsBat'"<>"Try The Bat!":""%-

> Which should mean that the condition is:

Apart from Marck's (just corrected) typo, here is my understanding of
how this works.

> %QINCLUDE

> if the condition is IsBat

> Why <>?

This is where a slight miss-understanding seems to have crept in, and
easily to make that mistake, it took me forever to understand the
basic ones I keep seeing crop up ;)

Lets see if I can explain it ;)

%IF:"%QINCLUDE='IsBat'"<>"":"":"Try The Bat!"%-

If ( Run the %QINCLUDE called 'IsBat' and put result here ) does not = "" then
  print nothing
else
  print "Try The Bat!
End

I might have the meaning of the IsBat backwards, and it might return a
value if TheBat is set, I don't understand the 'IsBat' %QINCLUDE that
Marck wrote ;)  But does the above make sense?

> And why is there a %- in the end? I thought it was only to break the
> line in two?

No, it is to stop the line break occurring in the email.  %- is the
same as making the line 'invisible' so to speak.  If you had it
without that on the end, the line break at the end of the macro would
still appear in your output.

- --
Jonathan Angliss
([EMAIL PROTECTED])

-----BEGIN PGP SIGNATURE-----
Version: 6.5.8ckt

iQA/AwUBPdq1USuD6BT4/R9zEQLD+QCg+3RifTTvl3DlVl3/dP18tBAKqqAAoK/V
eJaPk+nDvzf6ZkHlRTMOIlXx
=CiSv
-----END PGP SIGNATURE-----


________________________________________________________
 Current version is 1.61 | "Using TBTECH" information:
http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to