If/then logic isn't technically possible with the native macro system. APIs can do it (requires the game creator to be a pro subscriber). Depending on your exact use-case you might be able to use some workaround to get basic if/then functionality however, some more specific information would help us help you :)