✅ 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
||
instead of &&
but yes|| ? why
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)
(&&
)oooh
thanks
!solved
$close
Use the
/close
command to mark a forum thread as answered