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.
LVL 1
rwheeler23Asked:
Who is Participating?
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 Developer, Architect, and AuthorCommented:
Posting some sample data and expected result set would help.
0
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.
0
Jose TorresSenior SQL Server DBACommented:
Expresssions in SSIS is painful.
When you get the info on the original logic you can go here for reference on ssis expressions
https://technet.microsoft.com/en-us/library/ms141232(v=sql.105).aspx
0

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:
Thanks
0
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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.