For example if i was on a training flight with an instructor, do i enter it as PIC or under dual?
Please tell me you are joking?
Similar question is asked every week, use Search or scroll back a page or two into the recent history.
You could even consider reading the instructions page in the front - and maybe a glance at the gold embossed title of the logbook.