visual studio how to loop a function code example Example: how to repeat an if in visual basic Do Until {Condition} {Repeating code} Loop