An SR latch works like the following, you have the inputs S,R, and clk when
s=0, r=0, output = same as previous cycle
s=0, r=1, output = 0
s=1, r=0, output = 1
s=1, r=1, restricted
you can make the make the output change at the rising edge of the clk by making using the following test
if...