Validate label value in if else conditions

In your script in host , What are you returning from your script? “null” ?
Json ?

In web got, you will have to use response Content (this is where you will have the data returned from your Script). You can use the response code to check the return code
You can use the Json Decode text Block to handle Response Content.
You can use dictionary blocks.
You can use lookup pairs Key together with Json Decode text to get values by key …