It's actually pretty easy even without using PIN statements. :-)
You can just type in immediate mode (letter case does not matter):
PRINT CORE.A4
This prints the analog value read from pin 4 on the digital header. The mnemonic is that "A" means "Analog". This is the equivalent of analogRead().
If you wish to read it in digital mode, use:
PRINT CORE.D4
The SolderCore has more analog inputs than the Arduino so some of the digital headers (D0-D13) can be read correctly in analog mode. If the pin does not support analog input mode, you'll get an error.
Note that you can read pins indexed this way too:
I = 5
PRINT CORE.A(I)
If you attach a SolderCore Breakout Shield to the SolderCore, you can test each output too:
CORE.D(0) = 1
CORE.D(0) = 0
Again, this is interactive. You can put this in a program, but I quite like the interactivity,
Regards,
-- Paul.