My main program assigns values to some of these parameters. In parts of my code I want to execute commands based on whether some of these parameters have been assigned values. This is easy for the float variables, for example, as I can write:
However when I am checking the character arrays to see if they have been assigned values im not sure what to write. Would I write
1 2 3 4
if(Trk.particle = NULL)
{
...
}
or
1 2 3 4
if(Trk.particle = 0)
{
...
}
or
1 2 3 4
if(Trk.particle = "")
{
...
}
I have tried all of the above and none really seem work. It seems like the if statement never executes in my code whether or not the argument statement is true or false. What am I doing wrong???