That's exactely my problem! I have a formula property let's Day " A + B". "A" is a Project property. If a Project os loaded, the result is OK, but if not, the formula doesn't work because the "*No project*". So I want a code "If result else" to give a value bases if a Project os loaded ir not. Thank's!
Create two project definitions, the first would be the previous one that I mentioned. The second will be a formula based definition and enter in something like this.
If [PROJECT NAME] = "*no name*" then
RESULT = B
RESULT = A + B
For [PROJECT NAME] select the the project definition created in step one.
This should give you the results you want as long as you don't name any of your projects "*no name"! Also you should be aware that vb script is case sensitive so make sure that the case of your letters is correct.
Thank's for the answer, but this doesn't work... if there is any project related property in any level of the PSD formula, the result showed is *No project* in every property.... that's why I'm asking for a alternative without using a direct project related property... Thank's!
I was incorrect it appears. The only other thing I can think of is to create two property sets. One for projects and one that doesnt contain projects that read the same information. Another option would to use the .net api and set the property defintions manually instead of using formulas. This would allow you to check and see if a project is loaded and then do the appropriate action and then fill in the manual property set with the correct information. You could lock the property set so no one could modify the information.
Sorry but that is the only options I can think of at this time.
yep, i'm creating two PSD, two sets of tags.... I don't know .net, so still waiting for someone's light!
Thank you very much for the help!