Full name of a sctn is "sctn 1 of frmw 1 of stru /6xxxx"
Var !name fullname of sctn
Var !isexist exists $!name
It's not working.
How to check fullname id exist or not .
Full name of a sctn is "sctn 1 of frmw 1 of stru /6xxxx"
Var !name fullname of sctn
Var !isexist exists $!name
It's not working.
How to check fullname id exist or not .
When the object is named (unname), the flnn given by the system is in the form of, for example, SCTN 1 OF FRMW 1 OF STRU /6XXXX
In this case, you can try using Var !isexist exists /$!name
On this case return result is showing false.
I tried it again and found that the STRU object is indeed not good, and I don't know why. The same method is useful for objects such as ELEB、TEE
I generally don't use exists method to determine whether the name exists, because I think it's cumbersome and the return result is unreliable.
The method I used to determine whether a name exists is to try to jump to the object of that name. If it jumps over, it means that the name exists. If it is reported that the error cannot be redirected, it means that the name does not exist. It can be easily solved by handle
Can you write your method with an example
As shown in the picture, I simply wrote an example, defined as a function that is convenient for future calls. Of course, similar code can appear in any program / script. Mainly thought
In addition to jumping, you can also convert the name into a reference. If an object called this name exists, the conversion can be successful and can also be easily captured through handles.