Search:

Type: Posts; User: Norm

Search: Search took 0.17 seconds.

  1. Re: Trying to compare the values of 2 array indexes.

    The variable: player1_answers is NOT defined as an array. Therefore the compiler will not allow array notation: [theIndex] to be used with it.
    player1_answers[index] The red part is not allowed for...
  2. Re: Trying to compare the values of 2 array indexes.

    To access an element in an array, use array notation. For a single dimension array: theArrayName[theIndex]
    I see that your code already uses array notation.

    An if statement could be used to...
Results 1 to 2 of 2