version 1.63, 2004/04/21 13:17:49 |
version 1.64, 2005/01/15 20:42:49 |
|
|
Currently, the only form that works is |
Currently, the only form that works is |
.Ql .if ${VAR} op something \. |
.Ql .if ${VAR} op something \. |
For instance, tests should be written as |
For instance, tests should be written as |
.Ql .if ${VAR} = "string" , |
.Ql .if ${VAR} == "string" , |
not the other way around, which doesn't work. |
not the other way around, which doesn't work. |
.Pp |
.Pp |
For loops are expanded before tests, so a fragment such as: |
For loops are expanded before tests, so a fragment such as: |
.Bd -literal -offset indent |
.Bd -literal -offset indent |
\&.for TMACHINE in ${SHARED_ARCHS} |
\&.for TMACHINE in ${SHARED_ARCHS} |
\&.if ${TMACHINE} = ${MACHINE} |
\&.if ${TMACHINE} == ${MACHINE} |
... |
... |
\&.endif |
\&.endif |
\&.endfor |
\&.endfor |