It works for me import os, strutils for param in commandLineParams(): for path in getEnv("PATH").split PathSep: let probe = path / param if existsFile probe: echo probe # keeps printing forever break Run
- Silly mistake in for loop but can't figure it out adnan
- Re: Silly mistake in for loop but can't figure it out Stefan_Salewski
- Re: Silly mistake in for loop but can't figure it... cdome