HTML - Used in other macros to detect if a parameter is not zero |
| Spaces Where Used | all SWEHB spaces |
|---|---|
| How used | in other macros to detect if a parameter is not zero |
| Visibility | only Sys Admins in the Macro Browser |
| Title | ifnotzero |
| Description | |
| Categories | |
| Icon URL | |
| Documentation URL | |
| Definition | Rendered |
| Output Format | |
| Status | Active in all spaces |
Used in the "refstable" collection of macros.
None.
Current Code
#set($xhtml=$body) #if($xhtml.startsWith("<p>",0) && $xhtml.endsWith("</p>"))
#set($len=$xhtml.length()-$generalUtil.convertToInteger(4))
#set($xhtml=$xhtml.substring(3,$len)) #end #if($param0 != "0") ${xhtml} #end