public override bool Pass()
    {
        int a = SaveControl.GetInt(Key);

        if (Comparison == Method.Equal)
        {
            return(a == Value);
        }
        else if (Comparison == Method.Greater)
        {
            return(a > Value);
        }
        else if (Comparison == Method.Less)
        {
            return(a < Value);
        }
        else if (Comparison == Method.NotEqual)
        {
            return(a != Value);
        }
        else
        {
            return(false);
        }
    }
Example #2
0
 public override void Process()
 {
     SaveControl.SetInt(Key, SaveControl.GetInt(Key) + Value);
 }