program define go
	args user_input
*******************************************
	** Program lets me type "go stamp" to bring me to my Stamp Duty project folder
	** Edit this file and save it to wherever Stata saves your ado files
	** Add your folder locations and "nicknames" below

** Being careful to maintain quotation mark syntax, put your folder locations here.
local folder_locations `" "C:\Users\Enda\Dropbox\stamp\code" "C:\Users\Enda\Dropbox\ETI" "C:\Users\Enda\Dropbox\1918 Irish Election" "'

** Being careful to maintain quotation mark syntax, put folder nicknames/shortcuts here.
local folder_names `" "stamp" "eti" "1918" "'
*******************************************

	local n: word count `folder_names'
	local error = 1
	forvalue i=1(1)`n'{
		local j: word `i' of `folder_names'
			if `"`j'"'==`"`user_input'"'{
				local desired_name = `"`j'"'
				local desired_folder: word `i' of `folder_locations'
				local error = 0
			}
			else{

			}
	}
			if `error'==0{
			di "Taking you now to the `desired_name' project folder, `desired_folder'"
			di "Godspeed, researcher."
			cd "`desired_folder'"
			}
			else{
			di "Folder nickname not found."
			}
end