Hello. I am having issues generating a correct command for the following condition. I have a do file that reads in data from a working directory. I generate a observation counter. I would like to change my current directory if my data_counter >250 observations. I think I need a if else statement.

Code:
*Identify what data we are working with daily vs cumulative data sets**
 gen data_counter = _n

if data_counter >=100 {
cd "/Users/wchin/Desktop/dive-project.git/cycle/short db/Stata data_sets/master" 
}
else{
cd "/Users/wchin/Desktop/dive-project.git/cycle/short db/Stata data_sets/daily"
}