[Zope] type checking

Jaroslav Lukesh lukesh at seznam.cz
Mon Apr 14 16:48:03 EDT 2008


<dtml-try>
<dtml-if "_.int(variable) = variable">
    Variable is integer
<dtml-else>
    Variable is not integer
</dtml-if>
<dtml-except>
    Variable is not number
</dtml-try>


----- Original Message ----- 
From: "Garry Saddington" <garry at schoolteachers.co.uk>


> Is there any way to do data type checking in dtml-if, for example to check
> that a variable is an integer? 



More information about the Zope mailing list