MATLAB: How to use “or”

or

Can u pls tell me what is wrong ( just an example) How do i use the or command ?
for i = 1:100
if i == 2|5
disp('hallo')
end
end

Best Answer

for i = 1:100
if (i == 2)|(i == 5)
disp('hallo')
end
end