/// <summary>
    /// Execute this command.
    /// </summary>
    /// <param name="variables">The variable list of the calling code.</param>
    public override void Execute(VariableList variables)
    {
      string[] processed = ProcessParameters(variables, Parameters);

      string value0 = variables.VariableGet(processed[0]);
      string value1 = variables.VariableGet(processed[1]);

      variables.VariableSet(processed[0], value1);
      variables.VariableSet(processed[1], value0);
    }
Ejemplo n.º 2
0
        /// <summary>
        /// Execute this command.
        /// </summary>
        /// <param name="variables">The variable list of the calling code.</param>
        public override void Execute(VariableList variables)
        {
            string[] processed = ProcessParameters(variables, Parameters);

            string value0 = variables.VariableGet(processed[0]);
            string value1 = variables.VariableGet(processed[1]);

            variables.VariableSet(processed[0], value1);
            variables.VariableSet(processed[1], value0);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Execute this command.
        /// </summary>
        /// <param name="variables">The variable list of the calling code.</param>
        public override void Execute(VariableList variables)
        {
            string[] processed = ProcessParameters(variables, Parameters);

            string output = processed[0].ToUpper(CultureInfo.CurrentCulture);

            variables.VariableSet(processed[1], output);
        }
    /// <summary>
    /// Execute this command.
    /// </summary>
    /// <param name="variables">The variable list of the calling code.</param>
    public override void Execute(VariableList variables)
    {
      string[] processed = ProcessParameters(variables, Parameters);

      string output = processed[0].Trim();

      variables.VariableSet(processed[1], output);
    }
    /// <summary>
    /// Execute this command.
    /// </summary>
    /// <param name="variables">The variable list of the calling code.</param>
    public override void Execute(VariableList variables)
    {
      string[] processed = ProcessParameters(variables, Parameters);

      string output = processed[0].ToUpper(CultureInfo.CurrentCulture);

      variables.VariableSet(processed[1], output);
    }
    /// <summary>
    /// Execute this command.
    /// </summary>
    /// <param name="variables">The variable list of the calling code.</param>
    public override void Execute(VariableList variables)
    {
      string[] processed = ProcessParameters(variables, Parameters);

      string output = String.Concat(processed[0], processed[1]);

      variables.VariableSet(processed[2], output);
    }
Ejemplo n.º 7
0
        /// <summary>
        /// Execute this command.
        /// </summary>
        /// <param name="variables">The variable list of the calling code.</param>
        public override void Execute(VariableList variables)
        {
            string[] processed = ProcessParameters(variables, Parameters);

            string output = String.Concat(processed[0], processed[1]);

            variables.VariableSet(processed[2], output);
        }
Ejemplo n.º 8
0
        /// <summary>
        /// Execute this command.
        /// </summary>
        /// <param name="variables">The variable list of the calling code.</param>
        public override void Execute(VariableList variables)
        {
            string[] processed = ProcessParameters(variables, Parameters);

            string output = processed[0].Trim();

            variables.VariableSet(processed[1], output);
        }
    /// <summary>
    /// Execute this command.
    /// </summary>
    /// <param name="variables">The variable list of the calling code.</param>
    public override void Execute(VariableList variables)
    {
      string[] processed = ProcessParameters(variables, Parameters);

      int input0Int = 0;
      int.TryParse(processed[0], out input0Int);

      int output = (int) Math.Sqrt(input0Int);

      variables.VariableSet(processed[1], output.ToString());
    }
Ejemplo n.º 10
0
        /// <summary>
        /// Execute this command.
        /// </summary>
        /// <param name="variables">The variable list of the calling code.</param>
        public override void Execute(VariableList variables)
        {
            string[] processed = ProcessParameters(variables, Parameters);

            int inputInt = 0;

            int.TryParse(processed[0], out inputInt);

            int output = Math.Abs(inputInt);

            variables.VariableSet(processed[1], output.ToString());
        }
 /// <summary>
 /// Execute this command.
 /// </summary>
 /// <param name="variables">The variable list of the calling code.</param>
 public override void Execute(VariableList variables)
 {
   string[] processed = ProcessParameters(variables, Parameters);
   variables.VariableSet(processed[0], processed[1]);
 }
Ejemplo n.º 12
0
 /// <summary>
 /// Execute this command.
 /// </summary>
 /// <param name="variables">The variable list of the calling code.</param>
 public override void Execute(VariableList variables)
 {
     string[] processed = ProcessParameters(variables, Parameters);
     variables.VariableSet(processed[0], processed[1]);
 }