SSIS Scripting syntax

Where can I find documentation on the proper syntax for SSIS scripting? I have this Where clause which needs to make a decision based on the value of User::LoadFuturePer. I have tested this and it will fail in one place if the value is 'N' and in another place if the value is 'Y' so my thinking is the syntax of this statement is wrong.

WHERE YEAR(a.TRXDATE)*10000+MONTH(a.TRXDATE)*100+DAY(a.TRXDATE) >= " + @[User::FiscalPeriod] + (@[User::LoadFuturePer]
 == "Y"?";":" And YEAR(a.TRXDATE)*10000+MONTH(a.TRXDATE)*100+DAY(a.TRXDATE) <=  " + @[User::CurrentPeriod] + ";")

I think it has something to do with the ? and then the positioning of the ()'s.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jim HornMicrosoft SQL Server Data DudeCommented:
Posting some sample data and expected result set would help.
rwheeler23Author Commented:
I need to go back to the original developer. I have discovered that if the date is specified as YYYYMM it works as opposed to YYYYMMDD. I need to find out what the original logic was.
Jose TorresCertified Database AdministratorCommented:
Expresssions in SSIS is painful.
When you get the info on the original logic you can go here for reference on ssis expressions

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rwheeler23Author Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.