Your iPhone or iPad, when plugged in, will start charging the battery. Once the battery reaches full charge capacity, charging stops, and then yes, the device is running purely on the external power supply. So there is no active discharge of the battery.
Philly's point is simply that normal use will not kill your battery prematurely - it will just kill it normally! In other words, if used normally an iPhone battery is rated to have an effective useful life of 500 discharge/charge cycles (or maybe it is up to 1000 now, I'm not sure about that). A (normal) cycle is a cycle - so however long it takes to get there is the lifespan of the battery.
The main negative thing that will kill a battery rapidly is frequent deep discharges - all the way down to the point the device auto powers off. Avoid those as much as possible, by simply charging the device whenever its convenient to do so. Also avoid extreme heat (e.g. leaving it baking on the seat or dash of a car in bright sunlight).