Swiper with 1 image

I am using swiper with dymanic images. How can I do the following:

if photo count is 1:
<div is="dmx-swiper" id="swiper1" dmx-bind:slides="get_photos.data.getPhotos" centered-slides>

if photo count > 1:
<div is="dmx-swiper" id="swiper1" dmx-bind:slides="get_photos.data.getPhotos" pagination="bullets" navigation keyboard centered-slides mousewheel loop loop-fill>

Is there a way to write if statements for something like this?

Thanks,
Tom Komin

Why not use two swipers in two conditional regions and setup each of them as you need?

Worked. Thanks.