Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi ,
Here is my script , but it's not working , i don't know if i'm missing something , please help :
If $(MoiCourant)='Janvier' then
EXECUTE cmd.exe /C rmdir /Q /S $(vCheminHomeQVD)QVDs_Avril$(vAnneePrecedante);
ELSE
EXECUTE cmd.exe /C rmdir /Q /S $(vCheminHomeQVD)QVDs_Mars$(vAnneePrecedante);
END IF
it always do the Else , when i do a TRACE $(MoiCourant) it shows Janvier !!!
I correct it , i just used the variable without $() , like this :
IF MoiCourant='Janvier' then
Thank you for your answers
Make sure there are no spaces after Janvier
Enclose the variable in quotes.
If '$(MoiCourant)'='Janvier' then
EXECUTE cmd.exe /C rmdir /Q /S $(vCheminHomeQVD)QVDs_Avril$(vAnneePrecedante);
ELSE
EXECUTE cmd.exe /C rmdir /Q /S $(vCheminHomeQVD)QVDs_Mars$(vAnneePrecedante);
END IF
use variable in single quotes
If '$(MoiCourant)'='Janvier'
hope this helps
I correct it , i just used the variable without $() , like this :
IF MoiCourant='Janvier' then
Thank you for your answers