There is any way to do it like C/C#?
C/C#
For example (C# style)
for (int i = 0; i < 100; i++) { if (I == 66) break; }
For these kind of problems you could use a recursive function.
let rec IfEqualsNumber start finish num = if start = finish then false elif start = num then true else let start2 = start + 1 IfEqualsNumber start2 finish num