xsl-list
[Top] [All Lists]

Increment a variable

2005-08-17 21:34:39
 Hello,
        I don't know whether this question is stupid question or not?
        
        How can I achieve following c++ code in XSLT.

        void fun1()
        {
                for(int i=0;i<1000;i++)
                {
                   fun2(i);
                }
        }

        void fun2(int var)
        {
                if ( var == 0 )
                {
                        var++;
                        // do something
                }
                else
                {
                        Var++;
                        // do something
                }
                if ( var == 100 )
                {
                        Var = 0;
                        // do something                 
                }
        }               
        

Thanks in advance,

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>