--- title: "Typecasting Expressions" slug: "typecasting-expressions" updated: 2023-10-31T15:24:49Z published: 2023-10-31T15:24:49Z canonical: "support.tulip.co/typecasting-expressions" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.tulip.co/llms.txt > Use this file to discover all available pages before exploring further. # Wyrażenia typecastingu *Dowiedz się, jak zmieniać typy danych za pomocą edytora wyrażeń.* Typecasting to metoda konwersji typów danych na inny typ danych w celu wykorzystania danych w różnych metodach lub kontekstach. Możesz rzutować dane w Tulip za pomocą edytora wyrażeń w wyzwalaczu. --- ## Konwersja tekstu **texttoboolean(**) Przetwarza tekst na wartość logiczną. "y", "yes", "t", "true" i "on" (oraz wszelkie warianty pisane wielką literą) są rozpoznawane jako prawda, a "n", "no", "f", "false" i "off" są rozpoznawane jako fałsz. ![texttoboolean expression](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/texttoboolean%20expression.png) W poniższym przykładzie każda zmienna tekstowa po lewej stronie jest konwertowana na wartość logiczną po prawej stronie. ![texttoboolean expression in app](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/texttoboolean%20expression%20in%20app.png) **texttodatetime(**) Zmienia dany tekstowy typ danych na typ danych Datetime UWAGA: W przypadku tego wyrażenia wymagane jest uwzględnienie w nim strefy czasowej. Listę obsługiwanych stref czasowych można znaleźć na [tej stronie](https://www.php.net/manual/en/timezones.php). ![texttodatetime expression ex](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/texttodatetime%20expression%20ex.png) ![texttodatetime expression ex in app](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/texttodatetime%20expression%20ex%20in%20app.png) **texttofile**() Konwertuje tekst do pliku ![texttofile expressions ex](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/texttofile%20expressions%20ex.png) **texttoimageurl**() Konwertuje tekst na adres URL obrazu. ![texttoimageurl expression ex](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/texttoimageurl%20expression%20ex.png) ![texttofile and imageurl expression ex in app](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/texttofile%20and%20imageurl%20expression%20ex%20in%20app.gif) **texttointeger**() Przekształca tekst w liczbę całkowitą ![texttointeger expression ex](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/texttointeger%20expression%20ex.png) **texttonumber**() Przekształca tekst lub znacznik czasu w liczbę. ![texttonumber expression ex](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/texttonumber%20expression%20ex.png) ## Konwersja na tekst **datetimetotext**() Zmienia podany typ danych datetime na typ danych tekstowych ![datetimetotext expression ex](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/datetimetotext%20expression%20ex.png) ![datetimetotext expressions ex in app](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/datetimetotext%20expressions%20ex%20in%20app.png) **filetotext**() Konwertuje plik na tekst ![filetotext expressions ex](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/filetotext%20expressions%20ex.png) ![filetotext expression ex in app](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/filetotext%20expression%20ex%20in%20app.png) **totext**() Parsuje wszystko na tekst ## Inne wyrażenia rzutowania typu **badge_id_to_user**() Konwertuje identyfikator odznaki na obiekt User ![badge_id_to_user expression ex](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/badge_id_to_user%20expression%20ex.png) ![badge_id_to_user expression ex in app](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/badge_id_to_user%20expression%20ex%20in%20app.png) **int_to_hex**() Zwraca szesnastkową reprezentację podanej liczby ![int_to_hex expression ex](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/int_to_hex%20expression%20ex.png) ![int_to_hex expression ex in app](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/int_to_hex%20expression%20ex%20in%20app.png) **hex_to_int**() Zwraca liczbową reprezentację podanego ciągu szesnastkowego. ![hex_to_int expression ex](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/hex_to_int%20expression%20ex.png) ![hex_to_int expression ex in app](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/hex_to_int%20expression%20ex%20in%20app.png) **interval_to_seconds**() Zwraca długość interwału w sekundach. ![int_to_hex expression ex](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/int_to_hex%20expression%20ex.png) ![int_to_hex expression ex in app](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/int_to_hex%20expression%20ex%20in%20app.png) **interval_to_seconds**() Zwraca długość interwału w sekundach ![seconds_to_interval expression ex](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/seconds_to_interval%20expression%20ex.png) **seconds_to_interval**() Konwertuje sekundy na interwał ![interval_to_seconds expression ex](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/interval_to_seconds%20expression%20ex.png) ![intervals and seconds expressions ex in app](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/intervals%20and%20seconds%20expressions%20ex%20in%20app.gif) **user_id_to_user**() Konwertuje identyfikator użytkownika na obiekt użytkownika. ![user_id_to_user expression ex](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/user_id_to_user%20expression%20ex.png) ![user_id_to_user expression ex in app](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/user_id_to_user%20expression%20ex%20in%20app.png) --- Czy znalazłeś to, czego szukałeś? Możesz również udać się na stronę [community.tulip.co](https://community.tulip.co/?utm_source=intercom&utm_medium=article-link&utm_campaign=all), aby opublikować swoje pytanie lub sprawdzić, czy inni mieli do czynienia z podobnym pytaniem!