is_integer is broken?

Author Message

Lance Leger

Wednesday 09 July 2003 12:59:19 pm

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?

Paul Forsyth

Thursday 10 July 2003 12:42:08 am

Does this work instead?

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

Lance Leger

Friday 11 July 2003 12:46:01 pm

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

Lance Leger

Friday 11 July 2003 12:54:52 pm

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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 11:22:47
Script start
Timing: Jan 18 2025 11:22:47
Module start 'layout'
Timing: Jan 18 2025 11:22:47
Module start 'content'
Timing: Jan 18 2025 11:22:48
Module end 'content'
Timing: Jan 18 2025 11:22:48
Script end

Main resources:

Total runtime0.9358 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 587.7891152.6094
Module start 'layout' 0.00560.0038 740.398439.4297
Module start 'content' 0.00940.9248 779.8281475.8125
Module end 'content' 0.93420.0016 1,255.64068.1875
Script end 0.9357  1,263.8281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3662160.0002
Check MTime0.00150.1570160.0001
Mysql Total
Database connection0.00080.085710.0008
Mysqli_queries0.886194.6872600.0148
Looping result0.00070.0734580.0000
Template Total0.890695.220.4453
Template load0.00210.220420.0010
Template processing0.888594.948120.4443
Template load and register function0.00030.027210.0003
states
state_id_array0.00150.161710.0015
state_identifier_array0.00120.125720.0006
Override
Cache load0.00150.1642210.0001
Sytem overhead
Fetch class attribute can translate value0.00080.084920.0004
Fetch class attribute name0.00220.231440.0005
XML
Image XML parsing0.00030.029420.0001
class_abstraction
Instantiating content class attribute0.00000.001540.0000
General
dbfile0.00080.0838100.0001
String conversion0.00000.000840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs