Re: [Zope] left(string, n) equivalent (newbie q.)

2000-06-15 Thread Luis Cortes
You should be able to use python's slice like so: dtml-if "word[:4] == 'help'" ... where "word" is the variable you want to use only 4 characters of. Hope this helps, bye. - Original Message - From: joel grimes [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 15, 2000

Re: [Zope] left(string, n) equivalent (newbie q.)

2000-06-15 Thread Graham Chiu
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 In article 000901bfd712$42628800$[EMAIL PROTECTED], Luis Cortes [EMAIL PROTECTED] writes You should be able to use python's slice like so: dtml-if "word[:4] == 'help'" ... where "word" is the variable you want to use only 4 characters of. Hope