Hi All,
I need to convert this in to OBI :
If [Candidate UDF Value 06] InList("Part Time"; "Casual"; "Regular Full Time in a Temporary Part Time position"; "Job Share"; "Casual in a Temporary Full Time position"; "Casual in a Temporary Part Time position"; "OPT"; "Regular Part Time in a Temporary Full Time position"; "Regular Part Time in a Temporary Part Time position"; "PT"; "New Employee in a Temporary Part Time position") Then
ToNumber([Candidate UDF Value 04])
ElseIf [Candidate UDF Value 02] InList("ONA Local 70";"SPH ONA") Then
(If IsNull([Candidate UDF Value 01]) Then
ToNumber([Candidate UDF Value 04])
Else
Round(DaysBetween(ToDate([Candidate UDF Value 01];"yyyy-MM-dd");CurrentDate()) / 365.25 * 1500;2))
ElseIf [Candidate UDF Value 02] InList("OPSEU Local 273";"SJHH OPSEU 206")Then
(If IsNull([Candidate UDF Value 01]) Then
ToNumber([Candidate UDF Value 04])
Else
Round(DaysBetween(ToDate([Candidate UDF Value 01];"yyyy-MM-dd");CurrentDate()) / 365.25 * 1650;2))
ElseIf [Candidate UDF Value 02] InList("CUPE 4800";"CUPE 7800";"SPH CUPE";"PIPSC Radiation Therapists") Then
(If IsNull([Candidate UDF Value 01]) Then
ToNumber([Candidate UDF Value 04])
Else
Round(DaysBetween(ToDate([Candidate UDF Value 01];"yyyy-MM-dd");CurrentDate()) / 365.25 * 1725;2))
ElseIf [Candidate UDF Value 02] InList("CUPE Trades") Then
(If IsNull([Candidate UDF Value 01]) Then
ToNumber([Candidate UDF Value 04])
Else
Round(DaysBetween(ToDate([Candidate UDF Value 01];"yyyy-MM-dd");CurrentDate()) / 365.25 * 1840;2))
ElseIf [Candidate UDF Value 02] InList("Prof Instit Public Service CAN") Then
(If IsNull([Candidate UDF Value 01]) Then
ToNumber([Candidate UDF Value 04])
Else
Round(DaysBetween(ToDate([Candidate UDF Value 01];"yyyy-MM-dd");CurrentDate()) / 365.25 * 1950;2))
ElseIf [Candidate UDF Value 02] InList("OPSEU Local 209";"OPSEU 209") Then
(If IsNull([Candidate UDF Value 01]) Then
ToNumber([Candidate UDF Value 04])
Else
Round(DaysBetween(ToDate([Candidate UDF Value 01];"yyyy-MM-dd");CurrentDate()) / 365.25 * 1950;2))
Else 0