Did you want "OR" () or "AND" (&&)?
if a+7+b <= index || index <= c %If you want OR, here it is. If you want AND, use && instead of ||
... %your code
else
... %your alternative code
end
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!