Typecasting variables

63 views
Skip to first unread message

Márton Bálint

unread,
Nov 3, 2009, 7:07:09 PM11/3/09
to Smarty Developers
Hi,

I just noticed that typecasting variables in IF statements cause a
syntax error. Sometimes it's useful to have it, for example here: {if
(string)$object1 == (string)$object2}do something{/if}

Do you have plans to add support for it?

Regards,
Marton

U.Tews

unread,
Nov 4, 2009, 11:04:22 AM11/4/09
to Smarty Developers
Typecasting is now supported. Update is in the SVN

Márton Bálint

unread,
Nov 6, 2009, 5:25:20 AM11/6/09
to Smarty Developers
Great, thanks.
Reply all
Reply to author
Forward
0 new messages