If ((Discharge_End > 115) And (Infeed_End < 25) ) Or (Belt_Length = 200) Then
Discharge_End = 114
Infeed_End = 26
End If
This makes it that if the Discharge_end reaches above 115 + Infeed_End is below 25 stuff will happen
OR
if the Belt_Length is the exact length of 200.
You can play with it of course.
So an if statement looks for a 'true' value to actually do stuff right?
Example:
If Statement = True
DoStuff
End if
You can also look for an other value that, when ultimitly combines to 'true' then it will do stuff..
Below here.... 2 'trues' make one giant 'true'
If (Statement = True) AndIf (OtherStatement = True)
DoStuff
End if
Here's some more text for you to read from microsoft.
https://learn.microsoft.com/en-us/dotnet/visual-basic/language-reference/statements/if-then-else-sta...
Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.
___________________________