SlideShare a Scribd company logo
1 of 14
Penerapan Kondisi A.I.
Pertemuan 7
Definisi Percabangan atau Pengkondisian
› Percabangan merupakan proses penentuan keputusan
yang mengeksekusi hasil sesuai dengan apa yang telah
diinstruksikan sebelumnya.
› Pada A.I. kondisi digunakan sebagai rule (aturan) untuk
mengeksekusi perintah yang diberikan berdasarkan
knowledge base pada inference engine.
› Proses penentuan keputusan atau dalam bahasa inggris
ini biasa disebut sebagai conditional statement
Apa itu kondisi IF ?
› IF berarti sebab atau jika.
› Fungsi IF artinya "kondisi" yang digunakan untuk
melakukan tindakan.
› Sesuatu yang akan terjadi atau dieksekusi apabila sesuatu
keadaan terpenuhi.
› Pengambilan keputusan (kondisi if) digunakan untuk
mengantisipasi kondisi yang terjadi dan menentukan
tindakan apa yang diambil sesuai dengan kondisi.
› komputer akan mengeksekusi sesuatu berdasarkan apa
yang diinstruksikan dalam komputer.
Struktur IF
If kondisi:
statements()
Apa itu kondisi ELSE ?
› ELSE berarti “selain”.
› Fungsi ELSE digunakan apabila kondisi IF tidak terpenuhi
dan membutuhkan opsi lain.
› Sesuatu yang akan tetap berjalan walaupun kondisi awal
tidak terpenuhi.
› Pengambilan keputusan (kondisi ELSE) digunakan untuk
mengantisipasi kondisi lain yang terjadi dan menentukan
tindakan apa yang diambil sesuai dengan kondisi.
› komputer akan mengeksekusi beberapa perintah sesuai
kondisi yang diinstruksikan dan tidak berhenti pada 1
kondisi.
Struktur ELSE
If kondisi:
statements()
Else
statements()
Apa itu kondisi IF-ELSE IF ?
› ELSE IF berarti “selain” kondisi pertama, namun terdapat
beberapa kondisi lain yang lebih spesifik dari kondisi
pertama.
› Fungsi ELSE IF digunakan apabila membutuhkan kondisi
lain yang lebih banyak.
› Pada fungsi ELSE IF kondisi harus dikelompokkan dengan
lebih mendetail untuk menghindari bentrokan.
Struktur ELSE
If kondisi:
statements()
Else If
statements()
Else If
statements()
Else If
statements()
Operator Yang Digunakan Pada Kondisi
› Operator Logika (AND, OR, dan NOT)
› Operator Pembanding (<,>,==,<=,>=, !=)
› Konsepnya sederhana :
menginstruksikan komputer
untuk melakukan suatu aksi
tertentu (X), hanya jika suatu
kondisi Y terpenuhi. Atau, kita
memerintahkan komputer
untuk melakukan aksi tertentu
(A) jika suatu kondisi tidak
terpenuhi.
Contoh “Jika-Maka”
› Premisnya adalah “Jika-Maka”.
› Jika nilai siswa lebih dari atau sama dengan 90, maka dia
dapat predikat A.
› Jika nilai siswa lebih dari atau sama dengan 80, maka dia
dapat predikat B.
› Jika nilai siswa lebih dari atau sama dengan 40, maka dia
dapat predikat C.
› Dan seterusnya.
CONTOH GORILLA MENGAMUK
› Jika berdehem Atau diam maka Aman.
› Jika mengaum Dan memukul dada maka Tidak Aman.
TERIMA KASIH
Muhamad Haries S.ST. M.T.

More Related Content

Featured

Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationErica Santiago
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellSaba Software
 

Featured (20)

Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
 

Pertemuan 7 AI.pptx

  • 2. Definisi Percabangan atau Pengkondisian › Percabangan merupakan proses penentuan keputusan yang mengeksekusi hasil sesuai dengan apa yang telah diinstruksikan sebelumnya. › Pada A.I. kondisi digunakan sebagai rule (aturan) untuk mengeksekusi perintah yang diberikan berdasarkan knowledge base pada inference engine. › Proses penentuan keputusan atau dalam bahasa inggris ini biasa disebut sebagai conditional statement
  • 3. Apa itu kondisi IF ? › IF berarti sebab atau jika. › Fungsi IF artinya "kondisi" yang digunakan untuk melakukan tindakan. › Sesuatu yang akan terjadi atau dieksekusi apabila sesuatu keadaan terpenuhi. › Pengambilan keputusan (kondisi if) digunakan untuk mengantisipasi kondisi yang terjadi dan menentukan tindakan apa yang diambil sesuai dengan kondisi. › komputer akan mengeksekusi sesuatu berdasarkan apa yang diinstruksikan dalam komputer.
  • 5. Apa itu kondisi ELSE ? › ELSE berarti “selain”. › Fungsi ELSE digunakan apabila kondisi IF tidak terpenuhi dan membutuhkan opsi lain. › Sesuatu yang akan tetap berjalan walaupun kondisi awal tidak terpenuhi. › Pengambilan keputusan (kondisi ELSE) digunakan untuk mengantisipasi kondisi lain yang terjadi dan menentukan tindakan apa yang diambil sesuai dengan kondisi. › komputer akan mengeksekusi beberapa perintah sesuai kondisi yang diinstruksikan dan tidak berhenti pada 1 kondisi.
  • 7. Apa itu kondisi IF-ELSE IF ? › ELSE IF berarti “selain” kondisi pertama, namun terdapat beberapa kondisi lain yang lebih spesifik dari kondisi pertama. › Fungsi ELSE IF digunakan apabila membutuhkan kondisi lain yang lebih banyak. › Pada fungsi ELSE IF kondisi harus dikelompokkan dengan lebih mendetail untuk menghindari bentrokan.
  • 8. Struktur ELSE If kondisi: statements() Else If statements() Else If statements() Else If statements()
  • 9. Operator Yang Digunakan Pada Kondisi › Operator Logika (AND, OR, dan NOT) › Operator Pembanding (<,>,==,<=,>=, !=)
  • 10. › Konsepnya sederhana : menginstruksikan komputer untuk melakukan suatu aksi tertentu (X), hanya jika suatu kondisi Y terpenuhi. Atau, kita memerintahkan komputer untuk melakukan aksi tertentu (A) jika suatu kondisi tidak terpenuhi.
  • 11. Contoh “Jika-Maka” › Premisnya adalah “Jika-Maka”. › Jika nilai siswa lebih dari atau sama dengan 90, maka dia dapat predikat A. › Jika nilai siswa lebih dari atau sama dengan 80, maka dia dapat predikat B. › Jika nilai siswa lebih dari atau sama dengan 40, maka dia dapat predikat C. › Dan seterusnya.
  • 12.
  • 13. CONTOH GORILLA MENGAMUK › Jika berdehem Atau diam maka Aman. › Jika mengaum Dan memukul dada maka Tidak Aman.