eZ Community » Forums » General » is_integer is broken?
expandshrink

is_integer is broken?

is_integer is broken?

Wednesday 09 July 2003 9:59:19 pm - 3 replies

I'm having difficult using the is_integer operator in the following scenario:

{let scat_h=3.5}
{section show=$scat_h|is_integer}
test
{/section}
{/let}

Has anyone successfully used is_integer?

Thursday 10 July 2003 9:42:08 am

Does this work instead?

{let scat_h=3.5}
{section show=is_integer($scat_h)}
test
{/section}
{/let}

Friday 11 July 2003 9:46:01 pm

Nope. Perhaps turning on debugging might provide some helpful information.

Friday 11 July 2003 9:54:52 pm

OK.. nevermind this is working now for some reason.

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from