I am not aware the usage of STDEV function, but in general term the formula should be constructed like the below

Array Formula - Requires Ctrl+Shift+Enter
Formula: copy to clipboard
=STDEV(IF(($L$2:$L$98=0)*($M$2:$M$98=0),(B2:B98)))