Head age with static variable function SayOnce( text ) { if( StaticVarGetText("lastsaidtext") != text ) { Say( "text"); StaticVarSetText("lastsaidtext", text ); } } SayOnce("Testing "+Name() );
Why is not allow to write anything else except SayOnce ("Testing "+Name() ); ? For example if I write SayOnce ("Testing"+Name() ); is not working Or SayOnce ("myTest "+Name() ); again is not working why ? Sorry about this question but I have to find out to make my own static Happy Easter very one Panos