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