[Zope] How to check type of variable in DTML

Dieter Maurer dieter@handshake.de
Wed, 8 May 2002 22:47:58 +0200


Schmidt, Allen J. writes:
 > ....
You can use the function "same_type". As the name suggests, it
takes two arguments and returns whether they have the same type.

You use it, e.g., like "same_type(my_var,'')" (to test whether
"my_var" contains a string).


Dieter