I Want to get the second address of a device via variable.
EG:
You already have [Device.FirstAddress]
Why not a:
[Device.SecondAddress]
Thought this one was a bit obvious.
string_substring(
string_substring(
device_property("AddressesCommaList"),
string_find(
device_property("AddressesCommaList"),
","
)+2
),
0,
string_find(
string_substring(
device_property("AddressesCommaList"),
string_find(
device_property("AddressesCommaList"),
","
)+2
),
","
)
)
string_substring(
string_substring(
string_substring(
device_property("AddressesCommaList"),
string_find(
device_property("AddressesCommaList"),
","
)+2
),
string_find(
(string_substring(
device_property("AddressesCommaList"),
string_find(
device_property("AddressesCommaList"),
","
)+2
)
),
","
)+2
),
0,
string_find(
string_substring(
string_substring(
device_property("AddressesCommaList"),
string_find(
device_property("AddressesCommaList"),
","
)+2
),
string_find(
(string_substring(
device_property("AddressesCommaList"),
string_find(
device_property("AddressesCommaList"),
","
)+2
)
),
","
)+2
),
","
)
)
)
string_substring(
string_substring(
string_substring(
string_substring(
device_property("AddressesCommaList"),
string_find(
device_property("AddressesCommaList"),
","
)+2
),
string_find(
(string_substring(
device_property("AddressesCommaList"),
string_find(
device_property("AddressesCommaList"),
","
)+2
)
),
","
)+2
),
string_find(
(string_substring(
string_substring(
device_property("AddressesCommaList"),
string_find(
device_property("AddressesCommaList"),
","
)+2
),
string_find(
(string_substring(
device_property("AddressesCommaList"),
string_find(
device_property("AddressesCommaList"),
","
)+2
)
),
","
)+2
)
),
","
)+2
),
0,
string_find(string_substring(
string_substring(
string_substring(
device_property("AddressesCommaList"),
string_find(
device_property("AddressesCommaList"),
","
)+2
),
string_find(
(string_substring(
device_property("AddressesCommaList"),
string_find(
device_property("AddressesCommaList"),
","
)+2
)
),
","
)+2
),
string_find(
(string_substring(
string_substring(
device_property("AddressesCommaList"),
string_find(
device_property("AddressesCommaList"),
","
)+2
),
string_find(
(string_substring(
device_property("AddressesCommaList"),
string_find(
device_property("AddressesCommaList"),
","
)+2
)
),
","
)+2
)
),
","
)+2
),
","
)
)
string_substring(
string_substring(
string_substring(
string_substring(
device_property("AddressesCommaList"),
string_find(
device_property("AddressesCommaList"),
","
)+2
),
string_find(
(string_substring(
device_property("AddressesCommaList"),
string_find(
device_property("AddressesCommaList"),
","
)+2
)
),
","
)+2
),
string_find(
(string_substring(
string_substring(
device_property("AddressesCommaList"),
string_find(
device_property("AddressesCommaList"),
","
)+2
),
string_find(
(string_substring(
device_property("AddressesCommaList"),
string_find(
device_property("AddressesCommaList"),
","
)+2
)
),
","
)+2
)
),
","
)+2
),
string_find(
(string_substring(
string_substring(
string_substring(
device_property("AddressesCommaList"),
string_find(
device_property("AddressesCommaList"),
","
)+2
),
string_find(
(string_substring(
device_property("AddressesCommaList"),
string_find(
device_property("AddressesCommaList"),
","
)+2
)
),
","
)+2
),
string_find(
(string_substring(
string_substring(
device_property("AddressesCommaList"),
string_find(
device_property("AddressesCommaList"),
","
)+2
),
string_find(
(string_substring(
device_property("AddressesCommaList"),
string_find(
device_property("AddressesCommaList"),
","
)+2
)
),
","
)+2
)
),
","
)+2
)
),
","
)+2
)