try search conditionals on pixx.pro or thumbs.pro or xgif.cc
Python Conditionals/Loops - step by step