Show/Hide Toolbars

XSharp

Navigation: X# Examples

NOP Example

Scroll Prev Top Next More

// The NOP keyword is an empty statement.
// This tells the compiler that there is no code missing !
FUNCTION Start() AS VOID
LOCAL i as LONG
FOR i := 1 to 10
  IF I % 2 == 0
     Console.WriteLine(i)
  ELSE
     NOP     // Nothing happens here. This tells the compiler that there is no code missing !
  ENDIF
NEXT
RETURN