While.AST.Statements.If.ToString C# (CSharp) Method

ToString() public method

public ToString ( ) : string
return string
        public override string ToString()
        {
            string s = string.Format("if {0} then\n{1}", Expression, Indent(IfBranch.ToString()));
            if (ElseBranch != null) {
                s += string.Format("\nelse\n{0}", Indent(ElseBranch.ToString()));
            }
            s += "\nfi";
            return s;
        }