/// <summary> /// Ends a while statement /// </summary> /// <param name="WhileCommand">While statement to end</param> public virtual void EndWhile(While WhileCommand) { SetCurrentMethod(); EndWhile TempCommand = new EndWhile(WhileCommand); TempCommand.Setup(); Commands.Add(TempCommand); }
/// <summary> /// Constructor /// </summary> /// <param name="WhileCommand">While command</param> public EndWhile(While WhileCommand) : base() { this.WhileCommand = WhileCommand; }
/// <summary> /// Creates a while statement /// </summary> /// <param name="LeftHandSide">Left hand side variable</param> /// <param name="ComparisonType">Comparison type</param> /// <param name="RightHandSide">Right hand side variable</param> /// <returns>The while object</returns> public virtual While While(VariableBase LeftHandSide, Enums.Comparison ComparisonType, VariableBase RightHandSide) { SetCurrentMethod(); While TempCommand = new While(ComparisonType, LeftHandSide, RightHandSide); TempCommand.Setup(); Commands.Add(TempCommand); return TempCommand; }