<< Click to Display Table of Contents >> Navigation: 3. Script Language > Internet and Network > JIO. / JNO. - If Online |
MiniRobotLanguage (MRL)
JIO./ JNO.
Jump If Online / Jump If Not Online
Intention
This command is used to test if the Computer is Online.
It has 3 Modes of Operation.
In this variant we test the connectivity if ANY of the following sites can be reached, if so we are ONLINE.
Test URL 1="http://www.w3.org"
Test URL 2="http://www.google.com"
Test URL 3="http://www.bing.com"
JIO.|Label
MBX.You are NOT ONLINE
ENR.
:Label
MBX.You are ONLINE
ENR.
' Here is the negative Form JNO.
' Maybe this will be most often used.
JNO.|Label
MBX.You are ONLINE
ENR.
:Label
MBX.You are NOT ONLINE
ENR.
Hereby only the connection to: "https://api.openai.com" is checked.
JNO.OAI|Label
MBX.You can reach out to Open AI.
ENR.
:Label
MBX.You can not reach out to Open AI.
ENR.
' In this example we also use Variables for condition-URL and Jump-Target
$$URL=http://www.smart-package.com
$$LAB=Label
JNO.$$URL|$$LAB
MBX.Your SPR-Site is NOT ONLINE
ENR.
:Label
MBX.Your SPR-Site is OFFLINE
EIF.
Syntax
JIO.[P1]|P2
JNO.[P1]|P2
Parameter Explanation
P1 - Can be omitted, or can be "OAI" or can be a "http://"-Address of your choice, that should be tested.
P2 - Label / Jump Target, if a ":" is added then a GSB. is used instead of a Jump.
Example
'*****************************************************
' EXAMPLE 1: JIO.
'*****************************************************
Remarks
This Command has not been tested with Proxy Servers.
Limitations:
-
See also: