Skip to content

trouble with conditionals #147

Answered by ttscoff
mundorfd asked this question in Q&A
Sep 22, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

first, it looks like you're missing the end if for those blocks. In that first block, you need to re-include Finder in each condition. It might actually work like you have it, with the file lines inside conditionals, but it wasn't designed that way and I can't be sure of that. Never actually tried it. What I'd recommend, though:

if course is "ernie"
	Finder
	- /Volumes/GoogleDrive/My Drive/ernie
else if course is "bert"
	Finder
	- /Volumes/GoogleDrive/Shared drives/bert
else if course is "oscar"
	Finder
	- ~/Box/Courses Shared Folder/oscar
end if

I think with the appropriate end if on the other two blocks they should work as is. You could combine them all, though...

if course is "ernie"
…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mundorfd
Comment options

Answer selected by mundorfd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants