Hi. Here is an example.
Functions:
name: test_function
code: "aaa"
Probes:
name: test_probe1
available: 1
error: test_function()
name: test_probe2
available: 1
error: if (test_function()="bbb","bbb","not bbb")
results:
test_probe1 - aaa
test_probe2 - bbb
What is that?
And where is a dude function’s manual?
string_compare
compares two strings, returns 0 if equal
Probes:
name: test_compare1
available: 1
error: string_compare("111","111")
name: test_compare2
available: 1
error: string_compare("111","222")
name: test_compare3
available: 1
error: string_compare("aaa","aaa")
name: test_compare4
available: 1
error: string_compare("aaa","bbb")
results:
test_compare1 - 3
test_compare2 - 3
test_compare3 - 3
test_compare4 - 3
string_compare does not work properly
use string_find instead
It is bad idea to find what functions return in a probe. Use device appearence label instead.
