| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -140,6 +140,34 @@ def __exit__(self, exctype, value, trace_back): | |||
| 140 | 140 | # Return | |
| 141 | 141 | return True | |
| 142 | 142 | ||
| 143 | + def __bool__(self): | ||
| 144 | + """Return the boolean value of the ConVar. | ||
| 145 | + | ||
| 146 | + :rtype: bool | ||
| 147 | + """ | ||
| 148 | + return bool(self.cvar) | ||
| 149 | + | ||
| 150 | + def __int__(self): | ||
| 151 | + """Return the integer value of the ConVar. | ||
| 152 | + | ||
| 153 | + :rtype: int | ||
| 154 | + """ | ||
| 155 | + return int(self.cvar) | ||
| 156 | + | ||
| 157 | + def __float__(self): | ||
| 158 | + """Return the floating point value of the ConVar. | ||
| 159 | + | ||
| 160 | + :rtype: float | ||
| 161 | + """ | ||
| 162 | + return float(self.cvar) | ||
| 163 | + | ||
| 164 | + def __str__(self): | ||
| 165 | + """Return the string value of the ConVar. | ||
| 166 | + | ||
| 167 | + :rtype: str | ||
| 168 | + """ | ||
| 169 | + return str(self.cvar) | ||
| 170 | + | ||
| 143 | 171 | def text(self, text): | |
| 144 | 172 | """Add a text to the list. | |
| 145 | 173 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments