VirtualUserScript Index Property C# API
Gets the index number of this Virtual User within the Virtual User group that it belongs to.

Namespace: Facilita.Fc.Runtime
Assembly: fc_clr (in fc_clr.dll) Version: 9.4.0.26
Syntax

public int Index { get; }

Field Value

The index number of this Virtual User within the Virtual User group that it belongs to.
Remarks

The first Virtual User has index 1.
Examples

The following example demonstrates executing conditional code based on the index number.
// pause for 1 second, every 10th VU 
if ((this.Index % 10) == 0)
{
    Pause(1000);
}
See Also