Frequently Asked Questions

Apr 18, 2024 - 07:07pm

 [F] Frequently Asked Questions  / Operational Questions  / Macros and Templates  / WCTL  /

What does the %%nop%% directive do?

Rate This FAQ
 (Not yet rated)

Created On: 10 Mar 1999 10:47 am
Last Edited: 22 Oct 1999 12:28 pm

Question Printer Friendly

The use of the %% nop %% WCTL directive is sometimes obscure.

Answer

Basically %% nop %% does nothing! "nop" is short for "no operation".

The reason it exists is that WCTL suppresses the CRLF immediately
following any %%...%% directive. So

<a href...>%%nop%%
< ...>

is actually output as

<a href...><img ...>

(because leading tabs are suppressed, and the %%nop%% suppresses the crlf).

So basically it allows you to write more readable HTML, without
having to run long strings together (ala our toolbar layout, where
extra white space causes spaces between the buttons).