const is_it_for_algo_N {.intdefine.} = 1
when is_it_for_algo_N == 1:
import A
elif is_it_for_algo_N == 2:
import B
RunAnd pass `nim c -d:is_it_for_algo_N=2 yourfile.nim` Or just put the alternate type definition instead of the imports.
