This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
#If...Then...#Else Directive Example
This example references conditional compiler constants in an
#If...Then...#Else construct to determine whether to compile certain statements.
' If Mac evaluates as true, do the statements following the #If.
#If
Mac Then
'. Place exclusively Mac statements here.
'.
'.
' Otherwise, if it is a 32-bit Windows program, do this:
#ElseIf
Win32 Then
'. Place exclusively 32-bit Windows statements here.
'.
'.
' Otherwise, if it is neither, do this:
#Else
'. Place other platform statements here.
'.
'.
#End If