This custom function is used to assign the Assessment associated on the course in the [RAS_ID_TESTED]field to the candidate. 

An assessment entered in the RAS_ID_TESTED field may be assigned to a candidate using workflow.  The custom function 'P2k_CF_TDRASTESTED' is used in the workflow usercalc to create and assign the assessment.  Below is an example of a usercalc.

||Line||CMD||Type 1||Operand 1||Oper||Type 2||Operand 2||Type 3||Operand 3||If\\Goto||Else\\Goto
|10|IF|CF|INSERTING|EQ|B|TRUE| | |20|99999
|20|IF|DB|CRS.RAS_ID_TESTED|GT|N|0 | | | 30 | 99999
|30|IF|CF|P2K_CF_TDRASTESTED|EQ|B|TRUE | | | 99999 | 99999
|99999|EXIT



----
![Notes|Edit:Internal.P2K_CF_TDRASTESTED] 	
[{InsertPage page='Internal.P2K_CF_TDRASTESTED' default='Click to create a new notes page'}]