eval

Change the behaviour of a set of commands
Syntax

eval [-q] [-r=<window>] <command>

Description
This command is useful to execute variable command sequences.
<command> is first evaluated as a normal parameter (thus identifiers and variables are substituted) then the evaluated string is executed as a command sequence.
-q causes eval to silently ignore the errors inside <command> and continue execution.
This command may be used to rebind the <command> to a specified window. The variables used in the <command> have local scope. If you want to set variables and have them visible at the eval scope level then you must use global variables. Remember that <command> is still a normal parameter and it must be enclosed in quotes if youwant it to be a complex command sequence. eval propagates the <command> return value.
Examples
    # evaluate a variable command
    if(%somecondition)%tmp = "echo yeah"
    else %tmp = "echo -i=10 yeah"
    eval %tmp
    # Rebind the command to the #linux channel to get the user list[/command]
    eval -r=$channel(#linux) "%Nicks[]=$chan.array;"

Main, Commands
KVIrc 3.0.0 Documentation
Generated by dag at Wed Jul 7 23:12:51 2004