C
C#16mo 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
Angius16mo ago
|| instead of && but yes
Sound
SoundOP16mo ago
|| ? why
Thinker
Thinker16mo 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
SoundOP16mo ago
oooh thanks !solved
Angius
Angius16mo ago
$close
MODiX
MODiX16mo ago
Use the /close command to mark a forum thread as answered
Want results from more Discord servers?
Add your server