Files

30 lines
666 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# FarawayOrbAgg.js — isFarawayDusman() (satır 55)
[← FarawayOrbAgg.js](index.md) · [← Master](../../wiki.md)
```javascript
function isFarawayDusman(entity)
{
var states = entity.getStates();
if (states == null || !states.has("FarawayDusman"))
{
return false;
}
var text = String(states.getString("FarawayDusman")).toLowerCase();
if (text == "true" || text == "1" || text == "yes" || text == "evet")
{
return true;
}
if (states.getNumber("FarawayDusman") == 1)
{
return true;
}
return text == "" || text == "null" || text == "undefined";
}
```