Home
About
Policies
FAQ
Forums
Registration
Password Recovery

Debugif (MPI)

From Tapestries MUCK

(Difference between revisions)
Jump to: navigation, search
 
Line 1: Line 1:
-
[[Category:MPI functions]][[Category:MPI Miscellaneous Functions]]
+
[[Category:functions (MPI)]][[Category:Miscellaneous Functions (MPI)]]
=debugif=
=debugif=
<mpi>{debugif:cond,expr}</mpi>
<mpi>{debugif:cond,expr}</mpi>

Latest revision as of 01:37, 31 March 2007

debugif

{debugif:cond,expr}

This will evaluate the conditional cond, and, if the result is true, (not an empty string, and not 0), then this will show MPI debugging info for all the commands within the given expression.

If cond evaluated as false, then expr is evaluated without the debugging info being displayed. This is useful for Debugging code selectively. This returns the result of the evaluation of expr.

Example:

{parse:v,{contents:here},{debugif:{dbeq:{&v},me},{dostuff:{&v}}}}

to only debug the running of the command {dostuff} when the argument will be the player who is running the MPI.

Personal tools
Namespaces
Variants
Actions
navagation
information
wiki
Toolbox