Ver original$ejecutar = false;if($var1==$var2) $ejecutar = true; if($ejecutar){ ?> <script type="text/javascript"> nombre_funcion(); </script> <?php}