Skip to content

Instantly share code, notes, and snippets.

@rippinrobr
Created November 19, 2010 20:46
Show Gist options
  • Save rippinrobr/707143 to your computer and use it in GitHub Desktop.
Save rippinrobr/707143 to your computer and use it in GitHub Desktop.
create_if_else_statement
def create_if_else_statement(condition, true_statements, false_statements)
is_null_check = CodeConditionStatement.new
is_null_check.Condition = condition
is_null_check.TrueStatements.Add(true_statements)
is_null_check.FalseStatements.Add(false_statements)
is_null_check
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment