You claim to have coded but don't know what if and while loops are? Also, programming terms are not language specific. And, once again because you still seem confused, if something is not needed, that does necessarily mean it does not exist. Necessity and a existance are not mutually inclusive.
Only programming for the last 40 years, in every thing from microcode through assembler for many different cpu's, a few of my own languages, I've never heard of an "if-loop" construct, sounds a bit like the Forth BEGIN UNTIL construction, "while-loop" sounds like he meant just a "WHILE" loop, and as for "whole-loop" you got me. maybe he's thinking just a DO LOOP construct. Either way he makes no sense.
In the case of magnetic flux lines, it is a necessity to have north and south poles, in fact north poles and south poles don't exist by themselves in nature. ( Although there was a paper by some researchers at Max Planck in Germany where they claimed to have found evidence of magnetic monopoles within Mossbauer spectra of some crystals ) For the sake of this discussion the simple fact of the existence of the North magnetic pole, necessarily means that the South magnetic pole exists, so you cannot say it exists but is not needed. If the compass is to work it is needed, and if the compass works then it exists.