This is a question is for programmers. No blocks in fxDreema can do what you need. You will definitely need custom code for that.