I'm trying to think of how to code a selection from a list. Something like this, I suppose:
void somefunction()
{
    string variable = {
        [1] = "String option A",
        [2] = "String option B",
        [3] = "String option C",
        [4] = "String option D"
    }
    int r = RandInt(1,4);
    AddDebugMessage("Selection: " + variable[r], false);
}
Of course, that's not valid code. I'm just hoping someone understands what I mean, and can tell me how to achieve this with the HPL2 editor without using repeated if then checks. Any assistance is greatly appreciated.
P.S. I am a complete layman when it comes to coding.