1

C, 241 bytes
Try it on ideone, with test cases... Which throws a runtime error:(
On my phone it looks like this:
i,j,k,x,y;f(v,l,h)char**v;{for(i=0;i<h;i++)for(j=0;j<l;)if(v[i][j++]=='S')x=i,y=j-1;for(;y<l,x<h;){a:if(v[x+1][y]!='=')x++;else{if(v[x][y]=='E')return 0;if(v[x][y+1]=='=')for(k=0;k<...