StarGeek,
Thank you for such a fast reply.
Once I got it typed in correctly, the solution ${FileSequence;$_+=1} work perfectly.
However, I must be doing things wrong for the IF statement. I am guessing that it would work as any programming language I have known by using "If, then, else".
So I tucked -if "$GPSLatitude and $GpsLongitude" in front of the rest like this ...
exiftool -if "$GPSLatitude and $GpsLongitude" -n -f -p "${FileSequence;$_+=1},$Composite:gpslatitude,$Composite:gpslongitude,$Composite:gpsaltitude,$filename,$exif:GPSImgDirection,$Composite:FOV" .\images > LATLON.csv
My result was missing files that had good $Composite:gpslatitude and $Composite:gpslongitude
Noticing that $GPSLatitude is not the same as $Composite:gpslatitude I tried changing to ...
exiftool -if "$Composite:gpslatitude and $Composite:gpslongitude" -n -f -p "${FileSequence;$_+=1},$Composite:gpslatitude,$Composite:gpslongitude,$Composite:gpsaltitude,$filename,$exif:GPSImgDirection,$Composite:FOV" .\images > LATLON.csv
and got the same result of missing lines written. (71 of 86 files failed condition)
There are a total of 14 files out of 157 that should not be written in this test group.
When I remove the -if statement they all write data. One of the missing files is the very first one.
I see nothing wrong with this line for it to fail the condition.
1,36.703276,-76.3464419722222,-35.627,20190115_113017.jpg,-,69.3903656740024
But I need to stop this line from being written.
30,-,-,-,20190115_115352.jpg,-,69.3903656740024
I even tried to simplify it by running the -if on just $Composite:gpslatitude (because if one doesn't exist, then most likely the other wont either).
But that failed just the same way.
Yes, I found in my lengthy research that I needed the $Composite:gpslongitude instead of the $GpsLongitude because of the missing negative sign. I need that for the software this being imported into.
Oh. Does it matter that I am running this on Windows 8.1 without Perl?