Captured variable not working in IF block

Should a variable that’s set in a Capture block be usable in an IF block? If only seems the work if I type it in rather than using my voice, and I’ve used a capital at the beginning of the value.