C
C#2y ago
Sound

✅ If statement meaning

Does if (Segments[i].Type is not SegmentType.Junction or SegmentType.Tail) mean if(Segments[i].Type != SegmentType.Junction && Segments[i].Type != SegmentType.Tail)) ?
6 Replies
Angius
Angius2y ago
|| instead of && but yes
Sound
SoundOP2y ago
|| ? why
Thinker
Thinker2y ago
The precedence is Segments[i].Type is (not SegmentType.Junction) or (SegmentType.Tail) (||) The other would be Segments[i].Type is not (SegmentType.Junction or SegmentType.Tail) (&&)
Sound
SoundOP2y ago
oooh thanks !solved
Angius
Angius2y ago
$close
MODiX
MODiX2y ago
Use the /close command to mark a forum thread as answered

Did you find this page helpful?