I need to run the 2nd command on windows cmd only if the 1st one fails, in another scneario, I want to open python setup after checking if it is installed or not.
I used this command
python --version || path/to/python_install.exe
as I know the || means run if the last command failed. but it only runs the first one.