I'm using this code right now
double[] LocationsDown = { 40, 85, 130, 175, 220, 265, 310, 355 };
double[] LocationsUp = { 50, 95, 140, 185, 230, 275, 320, 5 };
double curretangle = Math.Round(targetAngle);
if (LocationsDown == curretangle) // <- Compile Time Error here
{
//thing
}
but it says that
" Operator '==' cannot be applied to operands of type 'double[]' and 'double' "
I do not understand the correct way to check if the array contains said double I feel like it's going to be an easy fix I just can't put my finger on it.