View Single Post
At some point my script needs to know whether the task it is dealing with is contained directly by its project, or in a task group.
I figured it out but it doesn't look very convincing. Is there a better way?
Here's my code:
Code:
if id of container of thisTask ≠ id of containing project of thisTask then
		-- it's in a task group
		-- do the appropiate thing
	else
		--do the other thing
	end if

Last edited by teobaldo; 2011-02-21 at 11:29 AM..