freemark(built-in)ノート1


default
存在する場合は固有の値、存在しない場合はデフォルト値

${seq[0]?default('-')}
${seq[1]?default('-')}
${seq[2]?default('-')}
${seq[3]?default('-')} 

a
b
-
- 


exists

It is
true if the variable exists, otherwise it is
false.

has_content

It is
true if the variable exists and is not ``empty'', otherwise it is
false. The meaning of ``empty'' depends on the concrete case.
expr?if_exists?size > 0 or
expr?if_exists?length > 0 instead of
expr?has_content.

if_exists


Example. Assume no variable called mouse is present:
(${mouse?if_exists})
Creating mouse...

(${mouse?if_exists})  

The output will be:
()
Creating mouse...
(Jerry)