public void Main()
{
//// TODO: Add your code here
Dts.TaskResult = (int)ScriptResults.Success;
// //MessageBox.Show(Dts.Variables["User::RowCtn_src1"].Value.ToString());
// //MessageBox.Show(Dts.Variables["User::RowCtn_src2"].Value.ToString());
// //MessageBox.Show(Dts.Variables["User::RowCtn_src3"].Value.ToString());
Dts.Variables["User::RowCtn_src1"].Value = "";
Dts.Variables["User::RowCtn_src2"].Value = "";
Dts.Variables["User::RowCtn_src3"].Value = "";
Dts.Variables["User::Err"].Value = "";
if ("User::RowCtn_src1" != "User::RowCtn_src2" || "User::RowCtn_src1" != "User::RowCtn_src3" || "User::RowCtn_src2" = !"User::RowCtn_src3")
{
this.Dts.Events.FireError(0, "Invalid row counts", "error", string.Empty, 0);
Dts.TaskResult = ScriptResults.Failure;
//// i'd like to throw an error
}
//I've tried this one
// //this what I want :
// //if it's true the success otherwise raise un error'
// //How can I do it
//int RowCtn_src1 = (int)this.Dts.Variables["RowCtn_src1"].Value;
//int RowCtn_src2 = (int)this.Dts.Variables["RowCtn_src2"].Value;
//int RowCtn_src3 = (int)this.Dts.Variables["RowCtn_src3"].Value;
//if (RowCtn_src1 != RowCtn_src2 || RowCtn_src1 != RowCtn_src3 || RowCtn_src2 !=RowCtn_src3 )
//{
// this.Dts.Events.FireError(0, "Invalid row counts", "error", string.Empty, 0);
// Dts.TaskResult = ScriptResults.Failure;
//}
}